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.57.tar.gz (10.3 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.57-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xn_auth-0.2.57.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

Hashes for xn_auth-0.2.57.tar.gz
Algorithm Hash digest
SHA256 ac7589782323a640879146e60dd306a45a5a8b637bf6fa973b281c5eb9f541a7
MD5 915afe75360fa385581d33599f00fbbd
BLAKE2b-256 f57eab10486cc6cb31b64e0720733f7f1a31f7734ded99a3767ad5c094989598

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xn_auth-0.2.57-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

Hashes for xn_auth-0.2.57-py3-none-any.whl
Algorithm Hash digest
SHA256 87ed465242f3c5afa208b8c8eb6d3bf5e06b621dc9483b0780e00e84a42576d3
MD5 aa143ec84ceb56f8c2d54d466d905080
BLAKE2b-256 faa1d86d034d1cfd0fc8783385f82f02558f6d7591ad8c0e993b6260ca38af3a

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