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.62.tar.gz (10.9 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.62-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xn_auth-0.2.62.tar.gz
  • Upload date:
  • Size: 10.9 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.62.tar.gz
Algorithm Hash digest
SHA256 ba7f32ac0bf96c14c3b93ef011022d1c92fc02e1613d44ad0fbff7dec4f40d58
MD5 cf9b0dab0f4628a23ce2da7ded6fd7fd
BLAKE2b-256 2e81ac60f9afaacc139349d22a212feda9dac21fce7fe4be48efd1b77fd204c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xn_auth-0.2.62-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.62-py3-none-any.whl
Algorithm Hash digest
SHA256 cd6f6bacf98badb9080cf1c466be44e0de8173b9e4ba0956f51fdcf0c7b5b9e6
MD5 1e289f4b67bbd10f4e5b4897e432b3d3
BLAKE2b-256 d76f53b3acef984366007d4e5b778ee57422538198d04ddd8c7f4c4abc97ca3f

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