Class DelegatingServerAuthenticationSuccessHandler
java.lang.Object
org.springframework.security.web.server.authentication.DelegatingServerAuthenticationSuccessHandler
- All Implemented Interfaces:
ServerAuthenticationSuccessHandler
public class DelegatingServerAuthenticationSuccessHandler
extends Object
implements ServerAuthenticationSuccessHandler
Delegates to a collection of
ServerAuthenticationSuccessHandler
implementations.- Since:
- 5.1
-
Constructor Summary
ConstructorDescriptionCreates a new instance with the provided list of delegates -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
onAuthenticationSuccess
(WebFilterExchange exchange, Authentication authentication) Invoked when the application authenticates successfully
-
Constructor Details
-
DelegatingServerAuthenticationSuccessHandler
public DelegatingServerAuthenticationSuccessHandler(ServerAuthenticationSuccessHandler... delegates) -
DelegatingServerAuthenticationSuccessHandler
public DelegatingServerAuthenticationSuccessHandler(List<ServerAuthenticationSuccessHandler> delegates) Creates a new instance with the provided list of delegates- Parameters:
delegates
- theList
ofServerAuthenticationSuccessHandler
- Since:
- 6.3
-
-
Method Details
-
onAuthenticationSuccess
public reactor.core.publisher.Mono<Void> onAuthenticationSuccess(WebFilterExchange exchange, Authentication authentication) Description copied from interface:ServerAuthenticationSuccessHandler
Invoked when the application authenticates successfully- Specified by:
onAuthenticationSuccess
in interfaceServerAuthenticationSuccessHandler
- Parameters:
exchange
- the exchangeauthentication
- theAuthentication
- Returns:
- a completion notification (success or error)
-