Auth adapter for XN-Api framework
Project description
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.
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
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 xn_auth-0.2.58.tar.gz.
File metadata
- Download URL: xn_auth-0.2.58.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68eb54888957f5ddf8199c58baa4fa78c36b011669a86bcbb45edacff9929bf3
|
|
| MD5 |
87c56e66b32f38162eb6a61d1d6d2a4b
|
|
| BLAKE2b-256 |
1f763e22cb579be1c69fc560c147f22c9627ef9c859c0dbff586dddbdcc13fe1
|
File details
Details for the file xn_auth-0.2.58-py3-none-any.whl.
File metadata
- Download URL: xn_auth-0.2.58-py3-none-any.whl
- Upload date:
- Size: 8.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 |
abc11cf9c87a9871412edaf9417987540fb6ab2b9726b87dab06cd09967d601f
|
|
| MD5 |
bf958e99c2575653a31759f2b8bba8e7
|
|
| BLAKE2b-256 |
5a5b67f938aeeaae50337cef414ef46e88ef6ad221469624e260f0ada1e214b2
|