Middleware to allow authorization using Keycloak and Django for django-rest-framework (DRF). This package should only be used in projects starting from scratch, since it overrides the users' management.
MIT License
32
stars
14
forks
source link
(v2.0.1) - Minor Bug Fixes and settings documentation #44
The authentication backend was not being reached. Changed to BaseBackend and parameter name changed fixed this.
Forced the ending / on BASE_PATH, because authentication would fail if user forgot it. Now it is always appended at the end. If user already inserted the URL is built with // which is fine for requests.
Added better header validation in middleware.
Added better documentation on existing and new settings
Refactored a log call to use lazy string formatting
There were some minor bugs in v2:
BaseBackend
and parameter name changed fixed this./
onBASE_PATH
, because authentication would fail if user forgot it. Now it is always appended at the end. If user already inserted the URL is built with//
which is fine for requests.