Skip to main content

FastAPI extension that provides PASETO Auth support

Project description

FastAPI PASETO Auth

Tests Coverage Status PyPI version

Documentation: https://chloe-ko.github.io/fastapi-paseto-auth

Source Code: https://github.com/Chloe-ko/fastapi-paseto-auth


Features

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

  • Access tokens and refresh tokens
  • Freshness Tokens
  • Revoking Tokens
  • Support for adding custom claims to JSON Web Tokens

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 will not be implementing support for storing PASETO tokens in cookies.
    However, I will gladly accept PRs implementing such 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

fastapi-paseto-auth-0.5.1.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

fastapi_paseto_auth-0.5.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file fastapi-paseto-auth-0.5.1.tar.gz.

File metadata

  • Download URL: fastapi-paseto-auth-0.5.1.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for fastapi-paseto-auth-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a13fcfea0976301a772425b3053c587fe838c08525d73bad936d94bb64273674
MD5 df7b17c1eaf011851db6d9b2181e06bf
BLAKE2b-256 4cdd2591e79051d2cabf4398c0a804e7d8754ecf7caae0fc034672f5ddf36652

See more details on using hashes here.

File details

Details for the file fastapi_paseto_auth-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_paseto_auth-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54e6691584d25940980681fc55f04ad61eaf35b772a1db33b38c11bb2083ab59
MD5 0da9aed169b0bf63cef010f96f5ec2cf
BLAKE2b-256 c1a4dc0cd7878aac8b61521c9543a966d06b0c33a9c24ce89806ef5338779f0c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page