Flask JWT auth utils
Project description
flask-jwt-auth
Package for an authorization functionality using JWT for Flask framework.
Settings:
To decode token from another Auth API it's neccessary to set Flask JWT_SECRET_KEY
env. It also could be required to set JWT_AUDIENCE
env (default value is "http://localhost:5000/"
)
Available functions:
- decode_jwt_token - to get JWT payload
- get_current_user - to get user username or ID (
sub
parameter in JWT) - jwt_required - decorator to validate JWT token and protect desired endpoints
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file simporter-e0967f3e095ce309-0.1.2.tar.gz
.
File metadata
- Download URL: simporter-e0967f3e095ce309-0.1.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a0483dfa5cdbdb14e97eec587d74c1ab072047c41d90a64eb663fdc524c74d |
|
MD5 | bc791b46b2ddf62b48f452c42e6bec44 |
|
BLAKE2b-256 | cd3688b0d8dbb7c7c74d128609f8aad5264af170553c75d3ea985e4ecbfd4f9f |