-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for nested ChainAuthHandlers of type "any" (#2644)
See #2641 ChainAuthHandlerImpl maintains, for instances of type "any", an index indicating which handler in the list succeeded to authenticate the user. This index is used in the postAuthentication method to determine which handler int he list should have its postAuthentication method invoked. When "any" ChainAuthHandlers were nested, the index computed in the top level ChainAuthHandler was used to choose the handlers in the list of nested ChainAuthHandler. This caused either the wrong handler to be peeked or IndexOutOfBoundsException to be thrown. With this change, the value put in the RoutingContext is specific to a ChainAuthHandler instance. Signed-off-by: Thomas Segismont <[email protected]>
- Loading branch information
1 parent
53acdc7
commit ed41309
Showing
2 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters