@FunctionalInterface
public interface OAuth2AuthorizationFailureHandler
OAuth2AuthorizedClient
,
OAuth2AuthorizedClientManager
Modifier and Type | Method and Description |
---|---|
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.
|
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
associated with the attempted authorizationattributes
- an immutable Map
of (optional) attributes present under
certain conditions. For example, this might contain a
javax.servlet.http.HttpServletRequest
and
javax.servlet.http.HttpServletResponse
if the authorization was performed
within the context of a javax.servlet.ServletContext
.