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=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-0.0.1.tar.gz (5.6 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-0.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for core_auth-0.0.1.tar.gz
Algorithm Hash digest
SHA256 61715c78480aa578b81a38c1c513641a8080e2b902d692692d84fdc87ca65a1e
MD5 c4573f1efb1d241b865f2af215f91129
BLAKE2b-256 d688bc3bf3aae589d66351b02d455d95c2eb4c2adedf76c8e211050a7ec58932

See more details on using hashes here.

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

Hashes for core_auth-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbf22a62b3afc81c234e5f9be01782ee2f6da2ec1974e6b1e2fa8091e2b98330
MD5 7156fa681b2507cb805e6ddbb39afa67
BLAKE2b-256 db7bd92c1f97b968766725181421878ebf6c5d17591fc47774c4e15866d42bcc

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