Skip to main content

This library contains common elements related to authentication & authorization...

Project description

core-auth


This project/library contains common elements related to authentication & authorization...

Execution Environment

Install libraries

pip install --upgrade pip
pip install virtualenv

Create the Python Virtual Environment.

virtualenv --python={{python-version}} .venv
virtualenv --python=python3.11 .venv

Activate the Virtual Environment.

source .venv/bin/activate

Install required libraries.

pip install .

Check tests and coverage...

python manager.py run-tests
python manager.py run-coverage

Current implementations

JwtToken

This is a wrapper to simplify the encoding and decoding process for JWT tokens using PyJWT library.

Example...

# -*- coding: utf-8 -*-

from core_auth.auth.jwt_token.jwt_auth import JwtToken 

client = JwtToken(private_key="S3cr3t")
token = client.encode(subject="SomeSubject")
print(client.decode(token))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

core_auth-1.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

core_auth-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file core_auth-1.0.0.tar.gz.

File metadata

  • Download URL: core_auth-1.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for core_auth-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3cf7bf1144a3f095e4c2ab9b79cbfbe30592336797471f615a72d5593807f3de
MD5 6d5b9e59f273a943a7d9b06f61063da2
BLAKE2b-256 2cfcb67715e131be11f702ad1ca83eafb8fc9c0fed1d7094d7495fd92afedc4d

See more details on using hashes here.

File details

Details for the file core_auth-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: core_auth-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for core_auth-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 484b91578aeeebffa759fd251424c01222855d0c306f1f1367c848f08ca38fc7
MD5 5aea7091aca785ada4fe03f210137c41
BLAKE2b-256 d3d87771ace480e92ddd7cf48116cefb821f11da9a879f782e5c533d022e53f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page