FastAPI extension that provides PASETO Auth support
Project description
FastAPI PASETO Auth
Documentation: https://chloe-ko.github.io/fastapi-paseto-auth
Source Code: https://github.com/Chloe-ko/fastapi-paseto-auth
FastAPI extension that provides PASETO (Plastform-Agnostic SEcurity TOkens) Auth support
PASETO are a simpler, yet more secure alternative to JWTs.
If you were familiar with flask-jwt-extended or fastapi-jwt-auth this extension suitable for you, as this is forked from fastapi-jwt-auth which in turn used flask-jwt-extended as motivation
Features
- Access tokens and refresh tokens
- Freshness Tokens
- Revoking Tokens
- Support for adding custom claims to Tokens
- Built-in Base64 Encoding of Tokens
- Custom token types
Installation
The easiest way to start working with this extension with pip
pip install fastapi-paseto-auth
Roadmap
- Support for WebSocket authorization
FAQ
- Where's support for tokens in cookies?
I mostly forked fastapi-jwt-auth because I needed a library to use for authentication using PASETO tokens in my private FastAPI Application. Which is why I only kept the functionality that I personally required.
Personally, I'm not a fan of saving data in cookies, and cookie support made up a big part of the code which just didn't make sense for me to bother adapting.
Hence, I likely will not be implementing support for storing PASETO tokens in cookies unless there is a considerable amount of people wanting it.
However, I will gladly accept PRs implementing tokens in cookies if someone else wants to implement it.
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
Built Distribution
File details
Details for the file fastapi-paseto-auth-0.6.0.tar.gz
.
File metadata
- Download URL: fastapi-paseto-auth-0.6.0.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ee4b386c86158b98d6478be632c4b26c9c86f457cd5bb76eb33bffafa1f54f |
|
MD5 | 76f853be66aeb7c163954742d388f308 |
|
BLAKE2b-256 | 544c2947df4b6073eaf3570ccc4fa676ae6b34e02e63b3a257bcecc61d1cd4e7 |
File details
Details for the file fastapi_paseto_auth-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: fastapi_paseto_auth-0.6.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53cebf3eca29305c786891e3c0180e19427245daa9f8bec23445041451921eed |
|
MD5 | 1d23c913f8602a5d6b762ba5777ca8bc |
|
BLAKE2b-256 | 36867cabf79030e459ddd27c80402bba8f567199293a9fdbd4fafbc55d5c8b38 |