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
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.2.tar.gz
(5.7 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.2.tar.gz.
File metadata
- Download URL: core_auth-0.0.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7586105de844819661744f003113ab933dc8f5d5687b67b01e8d1166ba03658
|
|
| MD5 |
992f56708b9451e73fbaa3d33a5b76a5
|
|
| BLAKE2b-256 |
fa9a871196892e91b531271d083dd55bd5b48a31109befadd722bfe3fa188c71
|
File details
Details for the file core_auth-0.0.2-py3-none-any.whl.
File metadata
- Download URL: core_auth-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f7dc1a13d2458f59bd23513e361b9ca7884e39f5ed88a1c2452121a0e135d5d
|
|
| MD5 |
435f5600581854de4d7f83eea711d188
|
|
| BLAKE2b-256 |
ba0b102750782a2b038a2e2b6bb19cf874562b6d73706fc3db1ab12e3ee3d301
|