-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Exception mapper not handling failed login attempts #24790
Comments
Hi @sberyozkin, is there any estimation or plan regarding this issue. I did some investigation and found class named |
@sberyozkin is this perhaps handled now? |
Hi @geoand I'm just checking issues and have found your comment, sorry. I think so, Michal, @michalvavrik, you've fixed it, right ? |
👌 |
@sberyozkin nope, I only fixed it for RESTEasy Reactive, but I just got familiar with how RESTEasy Classic process requests and there is a way to fix it too. Will do, thx for a hint |
Describe the bug
I want to log failed login attempt.
So I generated quarkus RESTEasy JAX-RS example from https://code.quarkus.io/
Then applied some changes shown below.
1.Added some security configs
2.Added two exception mappers. AuthenticationFailedException and AuthenticationCompletionException
3.Edited the test class.
Despite of changes above the exception mappers don't catch any exception regarding the failed Basic authentication attempt.
Any thoughts on this?
Expected behavior
Catch AuthenticationFailedException and AuthenticationCompletionException in according exception mappers.
Actual behavior
Bypass the exception mappers.
How to Reproduce?
./mvnw compile quarkus:dev
Output of
uname -a
orver
Ubuntu 21.10
Output of
java -version
openjdk version "11.0.13"
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.5.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4
Additional information
No response
The text was updated successfully, but these errors were encountered: