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=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
Release history Release notifications | RSS feed
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-0.0.1.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file core_auth-0.0.1.tar.gz.
File metadata
- Download URL: core_auth-0.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61715c78480aa578b81a38c1c513641a8080e2b902d692692d84fdc87ca65a1e
|
|
| MD5 |
c4573f1efb1d241b865f2af215f91129
|
|
| BLAKE2b-256 |
d688bc3bf3aae589d66351b02d455d95c2eb4c2adedf76c8e211050a7ec58932
|
File details
Details for the file core_auth-0.0.1-py3-none-any.whl.
File metadata
- Download URL: core_auth-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf22a62b3afc81c234e5f9be01782ee2f6da2ec1974e6b1e2fa8091e2b98330
|
|
| MD5 |
7156fa681b2507cb805e6ddbb39afa67
|
|
| BLAKE2b-256 |
db7bd92c1f97b968766725181421878ebf6c5d17591fc47774c4e15866d42bcc
|