https://github.com/IndominusByte/fastapi-jwt-auth
FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)
https://github.com/IndominusByte/fastapi-jwt-auth
authorization fastapi fastapi-extension fastapi-jwt jwt python3
Last synced: 4 months ago
JSON representation
FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)
- Host: GitHub
- URL: https://github.com/IndominusByte/fastapi-jwt-auth
- Owner: IndominusByte
- License: mit
- Created: 2020-07-23T09:40:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T06:58:02.000Z (11 months ago)
- Last Synced: 2024-10-12T18:42:04.399Z (4 months ago)
- Topics: authorization, fastapi, fastapi-extension, fastapi-jwt, jwt, python3
- Language: Python
- Homepage: http://indominusbyte.github.io/fastapi-jwt-auth/
- Size: 795 KB
- Stars: 645
- Watchers: 8
- Forks: 151
- Open Issues: 61
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fastapi - FastAPI JWT Auth - JWT auth (based on [Flask-JWT-Extended](https://github.com/vimalloc/flask-jwt-extended)). (Third-Party Extensions / Auth)
- awesome-fastapi - FastAPI JWT Auth - JWT auth (based on [Flask-JWT-Extended](https://github.com/vimalloc/flask-jwt-extended)). (Third-Party Extensions / Auth)
README
FastAPI JWT Auth
[](https://coveralls.io/github/IndominusByte/fastapi-jwt-auth?branch=master)
[](https://badge.fury.io/py/fastapi-jwt-auth)
[](https://pepy.tech/project/fastapi-jwt-auth)---
**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```bash
pip install fastapi-jwt-auth
```If you want to use asymmetric (public/private) key signing algorithms, include the asymmetric extra requirements.
```bash
pip install 'fastapi-jwt-auth[asymmetric]'
```## License
This project is licensed under the terms of the MIT license.