JWTAuthMiddleware
now validates JWT claims using therequired_claims
decorator and the standardAuthlib
validation mechanism.Authlib
claim options can be passed to the component using theJWT_CLAIMS_OPTIONS
setting.JWTAuthMiddleware
now raises an HTTP 403 error ifrequired_claims
check fails.JWT_ALGORITHM
is now a required setting when usingJWTComponent
. HS256 is no longer a default and will raise aConfigurationError
if None.JWT_PRIVATE_KEY_FILE
andJWT_PUBLIC_KEY_FILE
are now options in settings and are required for RS*, ES*, and PS* algorithms.
- Fixed README.md code examples
- Pinned Authlib version due to API changes in Authlib 0.11
JWTUser
is now known asJWTIdentity
JWTIdentity
now has dynamic attribute access to its token claims via standard dot notation- Authentication code and components have been relocated to
molten_jwt.auth
JWT
is now a simple wrapper aroundauthlib.jwt
with no dependencies on themolten.Settings
.JWTComponent
will return a single JWT instance configured from the settings passed in themolten.Settings
JWTIdentityComponent
now has a setting to extract a JWTdentity from a json web token passed in a named cookie.JWTAuthMiddleware
now has new settings to control authentication checking, including a whitelist of handlers.
- Updated documentation before push to Pypi
- Fixed bumpversion replacement string
Switched from using PyJWT to Authlib for JWT support