You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When application with resteasy-reactive and smallrye-jwt receives invalid token and proactive security is enabled, there is no way to customize response.
Expected behavior
There is a way to catch AuthenticationFailedException and customize response.
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
We discussed multiple solutions here #28391, in PR history can also be found multiple variants of fixes, but it was suggested that it's handled in dedicated issue.
You can consider it duplicate of #5751, but IMHO #28391 showed the issue is sensitive and should be handled in small parts. #26922 differs in proactive=false and there is also issue when ending of response in RR that I'm going to handled.
The text was updated successfully, but these errors were encountered:
michalvavrik
changed the title
RESTEasy Reactive - exception mapper not called when JWT is invalid and proactive security enabled
RESTEasy Reactive - provide way to customize response when JWT is invalid and proactive security enabled
Oct 31, 2022
Describe the bug
When application with
resteasy-reactive
andsmallrye-jwt
receives invalid token and proactive security is enabled, there is no way to customize response.Expected behavior
There is a way to catch
AuthenticationFailedException
and customize response.Actual behavior
Exception mapper/failure handler is not called.
How to Reproduce?
Reproducer:
Steps to reproduce the behavior:
git clone https://github.com/michalvavrik/quarkus-reproducer.git
git checkout resteasy-reactive
mvn quarkus:dev
curl -v "http://localhost:8080/hello" -vvv -H "Authorization: Bearer asdgasdg"
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
We discussed multiple solutions here #28391, in PR history can also be found multiple variants of fixes, but it was suggested that it's handled in dedicated issue.
You can consider it duplicate of #5751, but IMHO #28391 showed the issue is sensitive and should be handled in small parts. #26922 differs in
proactive=false
and there is also issue when ending of response in RR that I'm going to handled.The text was updated successfully, but these errors were encountered: