Interface ReactiveOAuth2AuthorizationFailureHandler
- 
- All Known Implementing Classes:
 RemoveAuthorizedClientReactiveOAuth2AuthorizationFailureHandler
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
@FunctionalInterface public interface ReactiveOAuth2AuthorizationFailureHandlerHandles when an OAuth 2.0 Client fails to authorize (or re-authorize) via the authorization server or resource server.- Since:
 - 5.3
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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. 
 - 
 
- 
- 
Method Detail
- 
onAuthorizationFailure
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.- Parameters:
 authorizationException- the exception that contains details about what failedprincipal- thePrincipalthat was attempted to be authorizedattributes- an immutableMapof extra optional attributes present under certain conditions. For example, this might contain aServerWebExchangeif the authorization was performed within the context of aServerWebExchange.- Returns:
 - an empty 
Monothat completes after this handler has finished handling the event. 
 
 - 
 
 -