Skip to main content

Yet another fork of fast-jwt-auth

Project description

FastAPI JWT Auth

Tests CodeQL PyPI version Downloads


Documentation: https://LibreNZ.github.io/libre-fastapi-jwt

Source Code: https://github.com/LibreNZ/libre-fastapi-jwt


This project was originally based on fastapi-jwt-auth . It has now been extensively modified and kept up to date.


Features

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

  • Integrated with the drawing button of OpenAPI
  • Access tokens and refresh tokens
  • Freshness Tokens
  • Revoking Tokens
  • Dual Tokens (cookie and headers)
  • Support for WebSocket auth
  • Support for adding custom claims to JSON Web Tokens
  • Storing tokens in cookies and CSRF protection
  • Support for JWKS endpoints for 3rd party token validation

Installation

The easiest way to start working with this extension with pip

pip install libre-fastapi-jwt

Use of RSA/EC keys (recommended)

To use asymmetric (public/private) key signing algorithms, include the asymmetric extra requirements.

pip install 'libre-fastapi-jwt[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

libre_fastapi_jwt-0.22.8.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

libre_fastapi_jwt-0.22.8-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file libre_fastapi_jwt-0.22.8.tar.gz.

File metadata

  • Download URL: libre_fastapi_jwt-0.22.8.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for libre_fastapi_jwt-0.22.8.tar.gz
Algorithm Hash digest
SHA256 897cd036e81094230a2b8465f245112f0b08e56c5989080a0f3f1dbb2ba6c5c0
MD5 94aa4c3f2559eed05e7738c8b1188339
BLAKE2b-256 276290f276ba3354a3cf7458567257b3050a9067bd2fac856f1da2a006915e69

See more details on using hashes here.

File details

Details for the file libre_fastapi_jwt-0.22.8-py3-none-any.whl.

File metadata

File hashes

Hashes for libre_fastapi_jwt-0.22.8-py3-none-any.whl
Algorithm Hash digest
SHA256 84a7fde886eedad8f8c82ce2067241a4072c66ebb16c712a68157e0b32d5b664
MD5 e64d7a30e6c9ef080784d7d5175ef26d
BLAKE2b-256 024b3dcbec66b31e1428b3e3a2e9d9db86ed59c0ffe5afdb243ad20ad4f1bdbd

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