Skip to content

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

License

Notifications You must be signed in to change notification settings

alejorodriguez96/fastapi-jwt-auth2

 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%