Flask JWT consumer with multi public key support
Project description
Flask JWT consumer
Flask extension for JWT token validation
Based on pyJWT. Supports multi public key validation in form of simplified authorized_keys
format, with only keys, and comments, no options. Good for key rotations or when you need multi issuer support.
Rational
Inspired by Flask JWT Simple, nice package I was enjoying until the need for multi key support. So that's where many backward compatible settings came from.
Configuration
JWT_ALGORITHM
defaultRS256
, algorithm used to decode JWT. As current iteration only asymmetric algorithms are considered. So anything symmetric will likely fail.JWT_HEADER_NAME
defaultAuthorization
, header where JWT expected to be.JWT_HEADER_TYPE
defaultBearer
, type of the token, part of the header's value.JWT_IDENTITY
optional, if provided JWT will use it.JWT_AUTHORIZED_KEYS
new line separated list of OpenSSH formatted keys.
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
Built Distribution
Close
Hashes for flask_jwt_consumer-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8192ba78dfabe2884a7b8ddfb60e29c4ad2030d96082f9d5f2a68907766da1e0 |
|
MD5 | de8313b81073105dec71e4c717907bad |
|
BLAKE2b-256 | 8a21ee99974aa03d948b000c946a6fb3abd093de4d1677ea27f259b968031fa3 |