urbanplatform / django-keycloak-auth

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

Make middleware async capable #22

Closed moritz89 closed 1 year ago

moritz89 commented 2 years ago

When using an ASGI server, it is more efficient if the entire middleware stack is async capable. A small change to the middleware allows the KeycloakMiddleware to support being async.