@FunctionalInterface
public interface ReactiveOAuth2AuthorizationFailureHandler
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
onAuthorizationFailure(OAuth2AuthorizationException authorizationException,
Authentication principal,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Called when an OAuth 2.0 Client
fails to authorize (or re-authorize)
via the authorization server or resource server.
|
reactor.core.publisher.Mono<java.lang.Void> onAuthorizationFailure(OAuth2AuthorizationException authorizationException, Authentication principal, java.util.Map<java.lang.String,java.lang.Object> attributes)
authorizationException
- the exception that contains details about what failedprincipal
- the Principal
that was attempted to be authorizedattributes
- an immutable Map
of extra optional attributes present under certain conditions.
For example, this might contain a ServerWebExchange
if the authorization was performed within the context of a ServerWebExchange
.Mono
that completes after this handler has finished handling the event.