- Add simple auth backend for django-rest-framework
- Stores raw token and decoded data as attributes on request
- Bugfixes
-
Adds structlog support
-
Adds more debug logging
-
0.0.8 (2021-09-30)
- Stores token id in session to verify previous logins against current access token
- Fixes bug where superusers might not be staff users
- Adds
PYClOAK_TOKEN_ID
setting - Adds roles as groups to user
- Adds logging
- Changes defaults
PYCLOAK_TOKEN_HEADER = "HTTP_X_FORWARDED_ACCESS_TOKEN"
PYCLOAK_USERNMAE_CLAIM = "preferred_username"
- Adds documentation in README.md
- Initial version