This library contains common elements related to authentication & authorization...
Project description
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-1.0.1.tar.gz
(6.5 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-1.0.1.tar.gz.
File metadata
- Download URL: core_auth-1.0.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01beee14de1cdc1f76761ea2213516c7a6a0ac13d3484e223f2b44cae6e63d28
|
|
| MD5 |
b1ff360e79f9eb26487e818c7c1d2f5f
|
|
| BLAKE2b-256 |
8556f3d4598aca6b6e9a635b15fb54a847fef3ccf474d92cf3e2e4d1a8a0a5ff
|
File details
Details for the file core_auth-1.0.1-py3-none-any.whl.
File metadata
- Download URL: core_auth-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
108481f10b067b5362bbc99f8a9409da02865a35f1d4c1a2f870575e92f2c27d
|
|
| MD5 |
e2334dd0db711183e5f0b479b413c634
|
|
| BLAKE2b-256 |
a114be046a2af23a304f7b4a0900876b82fccbfd9d17211a1cf6bebc782f83df
|