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.69

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.69
File Size Uploaded Provenance Actions
xn_auth-0.2.69.tar.gz 13.3 kB Without provenance Details for xn_auth-0.2.69.tar.gz

Built distribution (wheel)

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

Total release size: 23.3 kB

Release files / xn_auth-0.2.69.tar.gz

Download URL xn_auth-0.2.69.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
809c2ee9b3fe06ab053c74c0db251eda6c1f3a9ae8fc03f53e6f572f537ac2b5
BLAKE2b-256 checksum
How to use checksums
59722824467c4c48989428538633c7452277e5f5194541d2cd76ca89372bc75e
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.69-py3-none-any.whl

Download URL xn_auth-0.2.69-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0342147d2f6b25bdc8dd46e5b66359faf31a2968ecf124ddeeafb7ea769adee2
BLAKE2b-256 checksum
How to use checksums
266ba5e75da21cdc69bbff52b12b404b9cb6a0b4cf12080576228efa099731bc
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.69

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.69 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