fastapi-paseto-auth-0.6.0
توضیحات
FastAPI extension that provides PASETO Auth support
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fastapi-paseto-auth-0.6.0 |
| نام | fastapi-paseto-auth |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Neneko |
| ایمیل نویسنده | fastapi@nyu.moe |
| آدرس صفحه اصلی | https://github.com/Chloe-ko/fastapi-paseto-auth |
| آدرس اینترنتی | https://pypi.org/project/fastapi-paseto-auth/ |
| مجوز | - |
<h1 align="left" style="margin-bottom: 20px; font-weight: 500; font-size: 50px; color: black;">
FastAPI PASETO Auth
</h1>

[](https://coveralls.io/github/Chloe-ko/fastapi-paseto-auth?branch=master)
[](https://badge.fury.io/py/fastapi-paseto-auth)
[](https://pepy.tech/project/fastapi-paseto-auth)
---
**Documentation**: <a href="https://chloe-ko.github.io/fastapi-paseto-auth" target="_blank">https://chloe-ko.github.io/fastapi-paseto-auth</a>
**Source Code**: <a href="https://github.com/Chloe-ko/fastapi-paseto-auth" target="_blank">https://github.com/Chloe-ko/fastapi-paseto-auth</a>
---
FastAPI extension that provides PASETO (**P**lastform-**A**gnostic **SE**curity **TO**kens) 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
```bash
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | fastapi>=0.65.3,<=0.85.0 |
| - | pyseto>=1.6.9,<=1.6.10 |
| - | pydantic>=1.9.1,<=1.10.2 |
| - | uvicorn>=0.11.5 |
| - | mkdocs>=1.1.2,<2.0.0 |
| - | mkdocs-material>=8.3.9,<9.0.0 |
| - | markdown-include>=0.7.0,<0.8.0 |
| - | pytest==7.1.3 |
| - | pytest-cov==3.0.0 |
| - | coveralls==3.3.1 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl fastapi-paseto-auth-0.6.0:
pip install fastapi-paseto-auth-0.6.0.whl
نصب پکیج tar.gz fastapi-paseto-auth-0.6.0:
pip install fastapi-paseto-auth-0.6.0.tar.gz