Skip to content
Discussion options

You must be logged in to vote

@Eng-Fouad Right, in that case, avoid blocking anonymous requests from it and throw your custom exception from the application code where you'd like to check if the identity is anonymous.

Mechanisms throw AuthenticationFailedException when the credentials can not be verified for the security runtime to request this mechanism to create a challenge. Mechanisms should return an empty or void Uni if no credentials are present - because other other authentication mechanism may be able to find the credentials.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Eng-Fouad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants