@FunctionalInterface public interface ReactiveOAuth2AuthorizationFailureHandler
|Modifier and Type||Method and Description|
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 failed
Principalthat was attempted to be authorized
attributes- an immutable
Mapof extra optional attributes present under certain conditions. For example, this might contain a
ServerWebExchangeif the authorization was performed within the context of a
Monothat completes after this handler has finished handling the event.