Interface OAuth2AuthorizationFailureHandler
- All Known Implementing Classes:
RemoveAuthorizedClientOAuth2AuthorizationFailureHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles when an OAuth 2.0 Client fails to authorize (or re-authorize) via the
Authorization Server or Resource Server.
- Since:
- 5.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAuthorizationFailure
(OAuth2AuthorizationException authorizationException, Authentication principal, Map<String, Object> attributes) Called when an OAuth 2.0 Client fails to authorize (or re-authorize) via the Authorization Server or Resource Server.
-
Method Details
-
onAuthorizationFailure
void onAuthorizationFailure(OAuth2AuthorizationException authorizationException, Authentication principal, Map<String, 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
- thePrincipal
associated with the attempted authorizationattributes
- an immutableMap
of (optional) attributes present under certain conditions. For example, this might contain ajakarta.servlet.http.HttpServletRequest
andjakarta.servlet.http.HttpServletResponse
if the authorization was performed within the context of ajakarta.servlet.ServletContext
.
-