thomasdarimont / keycloak-extension-playground

Simple project environment for creating custom Keycloak extensions
Apache License 2.0
659 stars 170 forks source link

Derived Require-Role-Authenticator for usage with direct grant #11

Closed chris-rl closed 4 years ago

chris-rl commented 4 years ago

The exiting implementation of the 'auth-require-role'-extension is meant to be used for browser-based-flows. It fails when using it with direct-grant-based-flows.

This PR adds another authenticator that derives from the existing one. It just changes the response in case the authentication is not successful, so it can be used with direct-grant-flows.

thomasdarimont commented 4 years ago

Thanks @chris-rl