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
With the change in referenced PR, ChainAuthHandler now calls postAuthentication for each JWTAuthHandler. But in postAuthenticationJWTAuthHandler ends the context while checking for scopes at this line..
Which causes ChainAuthHandler not to continue with the other handlers in the chain. This flow is not expected as its a any() handler and should continue and be successful if one of the handlers are successful.
Version
>=4.5.6
Context
This(#2582) pull request broke multiple
JWTAuthHandler
s hooked with aChainAuthHandler.any()
(Well actually it wasn't checking for scopes before)So I am using
vertx-web-openapi-router
and it creates this similar doubleJWTAuthHandler
inside aChainAuthHandler
when a route has security like thisWith the change in referenced PR, ChainAuthHandler now calls
postAuthentication
for eachJWTAuthHandler
. But inpostAuthentication
JWTAuthHandler
ends the context while checking for scopes at this line..vertx-web/vertx-web/src/main/java/io/vertx/ext/web/handler/impl/JWTAuthHandlerImpl.java
Line 154 in a6d16eb
Which causes ChainAuthHandler not to continue with the other handlers in the chain. This flow is not expected as its a
any()
handler and should continue and be successful if one of the handlers are successful.Do you have a reproducer?
Steps to reproduce
Add this test to ChainAuthHandlerTest class and run.
The text was updated successfully, but these errors were encountered: