Skip to main content

FastAPI extension that provides JWT Auth support (secure, easy to use and lightweight)

Project description

FastAPI JWT Auth

Tests Coverage Status PyPI version Downloads


Documentation: https://indominusbyte.github.io/fastapi-jwt-auth

Source Code: https://github.com/IndominusByte/fastapi-jwt-auth


Features

FastAPI extension that provides JWT Auth support (secure, easy to use and lightweight), if you were familiar with flask-jwt-extended this extension suitable for you, cause this extension inspired by flask-jwt-extended 😀

  • Access tokens and refresh tokens
  • Freshness Tokens
  • Revoking Tokens
  • Support for WebSocket authorization
  • Support for adding custom claims to JSON Web Tokens
  • Storing tokens in cookies and CSRF protection

Installation

The easiest way to start working with this extension with pip

pip install fastapi-jwt-auth

If you want to use asymmetric (public/private) key signing algorithms, include the asymmetric extra requirements.

pip install 'fastapi-jwt-auth[asymmetric]'

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_jwt_auth_md-1.0.0.tar.gz (49.2 kB view details)

Uploaded Source

Built Distribution

fastapi_jwt_auth_md-1.0.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_jwt_auth_md-1.0.0.tar.gz.

File metadata

  • Download URL: fastapi_jwt_auth_md-1.0.0.tar.gz
  • Upload date:
  • Size: 49.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for fastapi_jwt_auth_md-1.0.0.tar.gz
Algorithm Hash digest
SHA256 417d61a851b95828c1d418ac4fb603cc202bc164ec443758c28d1fd26f5155bf
MD5 bc4be8bae85bcd76d16ffc1257d0149f
BLAKE2b-256 6d40d3308e38319ad3007775defe0811c33b97cd75f1996c793ad5e8d0723804

See more details on using hashes here.

File details

Details for the file fastapi_jwt_auth_md-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_jwt_auth_md-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7869507ac168bae0b6ab59b32a1110f547ceb0a89790a4345b8d6a2762ebec27
MD5 c49738d489a3fa9692eca64be3b06f98
BLAKE2b-256 a79438bb69fa81e2364a9afadce1594c15e650414f28bc6509ec677454e36525

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page