Skip to main content

X-Auth

JWT authentication for x-api

JWT cookie based Auth Middleware for ASGI framework. Stores in user_id, issued and expired dates, user role and blocked state. When token expired, it is automatically fetching user from db, and if he is not blocked now, then updates issue/expire dates, and user role if it was changed after the last user fetch.

Requirements

  • Python >= 3.12

INSTALL

pip install xn-auth

Made with ❤ on top of the X-Model.

Metadata

Release files for xn-auth 0.2.70

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xn-auth 0.2.70
File Size Uploaded Provenance Actions
xn_auth-0.2.70.tar.gz 13.3 kB Without provenance Details for xn_auth-0.2.70.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xn-auth 0.2.70
File Interpreter ABI Platform Actions
xn_auth-0.2.70-py3-none-any.whl Python 3 none any Details for xn_auth-0.2.70-py3-none-any.whl

Total release size: 23.5 kB

Release files / xn_auth-0.2.70.tar.gz

Download URL xn_auth-0.2.70.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d1c841de65f895f092c42e773662c51e11b04ead71840d5e8a76ae44ece2b199
BLAKE2b-256 checksum
How to use checksums
3424da0a9efaf35a3bdf8554780f6639bc03b1422b07c7b47c6a7c786715e1de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / xn_auth-0.2.70-py3-none-any.whl

Download URL xn_auth-0.2.70-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1787c59594ad80691ace64b7a6c346d38067ed635e9abc2b960b4c858c36347
BLAKE2b-256 checksum
How to use checksums
44711b4a2c9195a584b812408fca9624fb99d211bf0fdd6930fad2cebda6e055
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for xn-auth 0.2.70

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.70 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page