Skip to main content

FastAPI PASETO Auth

Tests Coverage Status PyPI version Downloads

Documentation: https://yashram96.github.io/fastapi-paseto

Source Code: https://github.com/yashram96/fastapi-paseto


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

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 0.7.1

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 0.7.1
File Size Uploaded Provenance
fastapi_paseto-0.7.1.tar.gz 44.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi_paseto 0.7.1
File Interpreter ABI Platform
fastapi_paseto-0.7.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 54.8 kB

Release files / fastapi_paseto-0.7.1.tar.gz

Download URL fastapi_paseto-0.7.1.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
25984bddcd9e569663b3b1409a85244c55a81db99c6a21e698d71c41d5136ca1
BLAKE2b-256 checksum
How to use checksums
7a8a1426e1aadb70d10bc898d9dc414d5be797a151d38a15b4c6306c235cb699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / fastapi_paseto-0.7.1-py2.py3-none-any.whl

Download URL fastapi_paseto-0.7.1-py2.py3-none-any.whl
Size 10.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7f8a9f2dd379b03620bf76f6ac6c3265452b2a8ecde8d53b8e2a50480037476e
BLAKE2b-256 checksum
How to use checksums
936085baa49cac05ebbe39e5f569f9a282f0c321274657fb87f810cf826a2df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for fastapi_paseto 0.7.1

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.

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files No provenance

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