FLASK JWT implementing the RFC7519 proposed standard
Project description
Flask-JWT-RFC7519
This Repository is built on flask-jwt-extended. All credit for the framework goes to the owner of the flask-jwt-extended repository.
This implementation changes the jwt payload to follow the proposed standard of RFC7519. This includes sub, aud and iss claims.
Differences between flask-jwt-extended and this repo:
Added two config options. You can specify what who the ISS is and who the AUD is.
current_app.config['JWT_ISS_CLAIM'] (string)
current_app.config['JWT_AUD_CLAIM'] (list of strings)
The SUB is handled by the current_app.config['JWT_SUB_CLAIM']
already in the flask-jwt-extended
To verify the AUD and/or ISS claim use respectively:
@jwt.aud_claim_verification_loader
@jwt.iss_claim_verification_loader
They will provide the value from key-value pair in the config dict. To handle incorrect aud or iss use the
@jwt.aud_claim_verification_failed_loader
@jwt.iss_claim_verification_failed_loader
The user_claims_loader is removed and replaced with additional_claims_loader.
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
Built Distribution
File details
Details for the file Flask-JWT-RFC7519-1.0.5.tar.gz
.
File metadata
- Download URL: Flask-JWT-RFC7519-1.0.5.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692afbd5f8edaf0067279632a5f12164ed1e0a06235c73af9628ffc8a12620e1 |
|
MD5 | d461faa0fc10f9deacfb263a5297e89d |
|
BLAKE2b-256 | 47c3aa3a0ce0c415a354445d132ef0ac15774512f889ce2c3dbf089d0a6f99ff |
File details
Details for the file Flask_JWT_RFC7519-1.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: Flask_JWT_RFC7519-1.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c7e999ad1ad4704ae9d128f6b95daa4d991fa4b006ba98856a4b5310b00c01 |
|
MD5 | 157377381ba2f70d07f7b07b70e61e6e |
|
BLAKE2b-256 | 19fc6c6be16c29bdfc870a49a5aac11743954ac19c0786a898bffb10551cc2c9 |