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.61.tar.gz (10.6 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.61-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xn_auth-0.2.61.tar.gz
  • Upload date:
  • Size: 10.6 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.61.tar.gz
Algorithm Hash digest
SHA256 1f9e782a6b0aac8b06f99bdbd94774709de6bb1d8c3e486c511bca797d93836f
MD5 10c858834411a3efdc7e31145276c163
BLAKE2b-256 086c8eb1bed5e376de048031056e165493be72d17e731c1fb5e277b07f4899a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xn_auth-0.2.61-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.61-py3-none-any.whl
Algorithm Hash digest
SHA256 64c1f388f3b2c80ef23d458b6b7c2f7757e523e8cdb5378b3e45f05025697d66
MD5 3d9f42636f5698b0c94012de995ddbca
BLAKE2b-256 7eadabad0e2877604263545be483986e8cac0feb0ae20396de862c29c026d0b7

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