This module contains a simple class to implement authentication and authorization in a Flask app using JSON Web Token (JWT)
Project description
flask_jwt_auth
Introduction
Getting Started
Example
Contributors
License
Introduction
This module contains a simple class to implement authentication and authorization in a Flask app using JSON Web Token (JWT)Getting Started
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
Token Validation using an SQL Database
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` : booleanContributors
This project exists thanks to all the people who contribute. [Contribute]. ""
License
This library is licensed under the MIT License - see the LICENSE.md file for details.
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
flask_jwt_auth-0.0.10.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file flask_jwt_auth-0.0.10.tar.gz
.
File metadata
- Download URL: flask_jwt_auth-0.0.10.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f149118a8d739d2c3ff48fe6b95dd9dac6dc4a8888e16dc84d3163670b5c642b |
|
MD5 | a15abba4212016f661e0ae2c18e4f123 |
|
BLAKE2b-256 | 1231702111a28d189704d17077561f1221178c76921e403331cd605fd8b3f6db |
File details
Details for the file flask_jwt_auth-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: flask_jwt_auth-0.0.10-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b876f74c43006ace2bc05f7282589501574fff21513fbe42b50e5fa26d9c8a7d |
|
MD5 | 78bc5440dc29a330ebc2acafd46a0682 |
|
BLAKE2b-256 | 6f2ea82df2d236bdf42c623ea7570a850f9b0024e5e37720cb641e9c1d414b6e |