Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make middleware async capable #23

Closed
wants to merge 1 commit into from
Closed

Make middleware async capable #23

wants to merge 1 commit into from

Conversation

moritz89
Copy link
Collaborator

@moritz89 moritz89 commented Jun 4, 2022

Why:

  • Improve performance
  • Make entire middleware stack async capable

This change addresses the need by:

  • Refactoring the KeycloakMiddleware to use the MiddlwareMixin

Closes #22

@moritz89
Copy link
Collaborator Author

This would be a useful feature, especially when using an ASGI server such as Daphne or uvicorn.

Why:

- Improve performance
- Make entire middleware stack async capable

This change addresses the need by:

- Refactoring the KeycloakMiddleware to use the MiddlwareMixin
@moritz89
Copy link
Collaborator Author

@uw-rvitorino @simao-silva Could you have a look at this? This is the last MR that would allow me to remove my fork.

It basically adds support for ASGI servers while retaining support for WSGI servers.

@diogosilva30
Copy link
Collaborator

I'm closing this PR, since it has been integrated in #39. Thanks for this change @moritz89

@diogosilva30 diogosilva30 linked an issue Oct 24, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make middleware async capable Use python-keycloak as the library to interface with Keycloak
2 participants