Interface OAuth2AuthorizationSuccessHandler
-
- 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 OAuth2AuthorizationSuccessHandler
Handles when an OAuth 2.0 Client has been successfully authorized (or re-authorized) via the Authorization Server.- Since:
- 5.3
- See Also:
OAuth2AuthorizedClient
,OAuth2AuthorizedClientManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAuthorizationSuccess(OAuth2AuthorizedClient authorizedClient, Authentication principal, java.util.Map<java.lang.String,java.lang.Object> attributes)
Called when an OAuth 2.0 Client has been successfully authorized (or re-authorized) via the Authorization Server.
-
-
-
Method Detail
-
onAuthorizationSuccess
void onAuthorizationSuccess(OAuth2AuthorizedClient authorizedClient, Authentication principal, java.util.Map<java.lang.String,java.lang.Object> attributes)
Called when an OAuth 2.0 Client has been successfully authorized (or re-authorized) via the Authorization Server.- Parameters:
authorizedClient
- the client that was successfully authorized (or re-authorized)principal
- thePrincipal
associated with the authorized clientattributes
- an immutableMap
of (optional) attributes present under certain conditions. For example, this might contain ajavax.servlet.http.HttpServletRequest
andjavax.servlet.http.HttpServletResponse
if the authorization was performed within the context of ajavax.servlet.ServletContext
.
-
-