Skip to main content

FastAPI JWT Auth 2

Tests Coverage Status PyPI version Downloads


Proyect forked from IndominusByte's fastapi-jwt-auth. Since it seems to be no longer maintained (last commit was on Nov 11, 2020) I decide to fork the repo and add support for pydantic==2.X. If this isn't the appropiate way to fix the dependencies problem, please contact me so I can do it in the proper way. Thanks!

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

Source Code: https://github.com/alejorodriguez96/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.

Metadata

Release files for fastapi-jwt-auth2 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-jwt-auth2 0.5.0
File Size Uploaded
fastapi_jwt_auth2-0.5.0.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-jwt-auth2 0.5.0
File Interpreter ABI Platform
fastapi_jwt_auth2-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / fastapi_jwt_auth2-0.5.0.tar.gz

Download URL fastapi_jwt_auth2-0.5.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
304f42ca2552f7163ce094564a3120ad7a1fb74be3585959a0c963b5f64c0d8a
BLAKE2b-256 checksum
How to use checksums
5a953791d05ec6b5fe07a25810a4424804b60967e30a7445704055c815a82e1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / fastapi_jwt_auth2-0.5.0-py3-none-any.whl

Download URL fastapi_jwt_auth2-0.5.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
954a27eeb5285e2de50cd5885b8b884008cf38f9a8381400de8211dcc9acad0c
BLAKE2b-256 checksum
How to use checksums
3b23f0341951a675300e9e78060ef30f8e50e8bc03ff061a9ff819f46bdef3be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page