flask-jwt-auth-0.0.8
توضیحات
This module contains a simple class to implement authentication and authorization in a Flask app using JSON Web Token (JWT)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-jwt-auth-0.0.8 |
| نام | flask-jwt-auth |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Quaking Aspen |
| ایمیل نویسنده | info@quakingaspen.net |
| آدرس صفحه اصلی | https://github.com/Quakingaspen-codehub/flask_jwt_auth |
| آدرس اینترنتی | https://pypi.org/project/flask-jwt-auth/ |
| مجوز | MIT |
<h6 align="left">
<img src="https://cdn.sealr.app/quaking+aspen+logo+teal+full-02.png" />
</h6>
# flask_jwt_auth
[Introduction](#Introduction)\
[Getting Started](#Started)\
[Example](#Example)\
[Contributors](#Contributors)\
[License](#License)
<h2 id="Introduction">Introduction</h2>
This module contains a simple class to implement authentication and authorization in a Flask app using JSON Web Token (JWT)
<h2 id="Started">Getting Started</h2>
In order to install, open the command prompt and type ✌️:
```
pip install flask_jwt_auth
```
In order to import:
```
from flask_jwt_auth import AuthFilters
```
<h3 id="Token">Token Validation using an SQL Database</h3>
This library supports using an SQL database for token validation.
The basic idea is that you store all your tokens in DB,
and flag the invalidated tokens (e.g. when a user logs out).
To use this feature:
- Set the environment variable containing the DB connection string, called `JWT_SESSION_TOKEN_DB_URI`.
- Create a table in that DB, called `session_token`. It must have the following fields:
- `access_token` : string
- `refresh_token` : string
- `is_invalid` : boolean
<h2 id="">Contributors</h2>
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/Quakingaspen-codehub/flask_jwt_auth/graphs/contributors">
""
</a>
<h2 id="License">License</h2>
This library is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.0.10 | http-status-code |
| >=1.0.0 | SQLAlchemy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl flask-jwt-auth-0.0.8:
pip install flask-jwt-auth-0.0.8.whl
نصب پکیج tar.gz flask-jwt-auth-0.0.8:
pip install flask-jwt-auth-0.0.8.tar.gz