keycloak authentication middleware #856
-
An example how to have this running with Keycloak jwt authentication. Maybe some middleware is needed? Something like: https://github.com/dsferruzza/actix-web-middleware-keycloak-auth |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not familiar with keycloak but we do have a JWT example. Porting what you're linking to to axum probably isn't hard, but should probably be a standalone crate. |
Beta Was this translation helpful? Give feedback.
-
Hey, for anyone looking: I have given this a shot over the weekend. With Keycloak being one of if not the biggest player in the industry when it comes to authentication, I was surprised that there was still no crate for it. Guess the "mainstream" business-applications have yet to catch up to Rust. Here is the crate: https://crates.io/crates/axum-keycloak-auth @davidpdrsn Should I prepare a PR providing an example for the axum repo? |
Beta Was this translation helpful? Give feedback.
I'm not familiar with keycloak but we do have a JWT example. Porting what you're linking to to axum probably isn't hard, but should probably be a standalone crate.