Skip to main content

FastAPI PASETO Auth

Tests Coverage Status PyPI version Downloads

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.

Metadata

Release files for fastapi-paseto-auth 0.6.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-paseto-auth 0.6.0
File Size Uploaded Provenance
fastapi-paseto-auth-0.6.0.tar.gz 44.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-paseto-auth 0.6.0
File Interpreter ABI Platform
fastapi_paseto_auth-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.2 kB

Release files / fastapi-paseto-auth-0.6.0.tar.gz

Download URL fastapi-paseto-auth-0.6.0.tar.gz
Size 44.1 kB
Tags Source
SHA-256 checksum
How to use checksums
28ee4b386c86158b98d6478be632c4b26c9c86f457cd5bb76eb33bffafa1f54f
BLAKE2b-256 checksum
How to use checksums
544c2947df4b6073eaf3570ccc4fa676ae6b34e02e63b3a257bcecc61d1cd4e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release files / fastapi_paseto_auth-0.6.0-py3-none-any.whl

Download URL fastapi_paseto_auth-0.6.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53cebf3eca29305c786891e3c0180e19427245daa9f8bec23445041451921eed
BLAKE2b-256 checksum
How to use checksums
36867cabf79030e459ddd27c80402bba8f567199293a9fdbd4fafbc55d5c8b38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Security for fastapi-paseto-auth 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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