Skip to main content

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

xn_auth-0.2.63.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xn_auth-0.2.63-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file xn_auth-0.2.63.tar.gz.

File metadata

  • Download URL: xn_auth-0.2.63.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for xn_auth-0.2.63.tar.gz
Algorithm Hash digest
SHA256 2b3a0f5ccd5a95ec8f50378891149f48cae0975e7310b63405b4c7b0bba58e86
MD5 18702e32a0c8d73e62d7f4a9d936714c
BLAKE2b-256 f3f982390f598b2a36ea902e45bf32f399a41cca967e9913681b6ac100df6eea

See more details on using hashes here.

File details

Details for the file xn_auth-0.2.63-py3-none-any.whl.

File metadata

  • Download URL: xn_auth-0.2.63-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for xn_auth-0.2.63-py3-none-any.whl
Algorithm Hash digest
SHA256 1050322ad0b2e4463cffea56c3d4ec29cb700d06d6a3c77a641833728a6db945
MD5 5580b88c517e4a1efb9899db3e47d706
BLAKE2b-256 d9abc2b481b968eba59a92f3f965cfbb5bc88eb91030f8447e7dd1c94ace3753

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