Repository navigation
Overrider keycloak function authenticate to return the 403 reason #14206
Unanswered
georgeWUZF
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I wanna return the 403 error with its reason because I wanna skip some one. So I override the function org.keycloak.adapters.OAuthRequestAuthenticator.challenge to return the reason/description. Code as below. But I can't check that which trigger point would call the function authenticate that I can't judge it's reason. Could help? Thanks!
@component
@slf4j
public class OAuthRequestAuthenticatorOverride
extends OAuthRequestAuthenticator
implements BeanPostProcessor {
}
All reactions