@FunctionalInterface
public interface OAuth2AuthorizationSuccessHandler
OAuth2AuthorizedClient,
OAuth2AuthorizedClientManager| Modifier and Type | Method and 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.
|
void onAuthorizationSuccess(OAuth2AuthorizedClient authorizedClient, Authentication principal, java.util.Map<java.lang.String,java.lang.Object> attributes)
authorizedClient - the client that was successfully authorized (or re-authorized)principal - the Principal associated with the authorized clientattributes - 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.