public final class AuthorizationCodeOAuth2AuthorizedClientProvider extends java.lang.Object implements OAuth2AuthorizedClientProvider
OAuth2AuthorizedClientProvider for the
authorization_code grant.OAuth2AuthorizedClientProvider| Constructor and Description |
|---|
AuthorizationCodeOAuth2AuthorizedClientProvider() |
| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthorizedClient |
authorize(OAuth2AuthorizationContext context)
Attempt to authorize the
client in the provided context. |
public AuthorizationCodeOAuth2AuthorizedClientProvider()
@Nullable public OAuth2AuthorizedClient authorize(OAuth2AuthorizationContext context)
client in the provided context. Returns null if authorization is
not supported, e.g. the client's
authorization grant type is
not authorization_code OR the
client is already authorized.authorize in interface OAuth2AuthorizedClientProvidercontext - the context that holds authorization-specific state for the clientOAuth2AuthorizedClient or null if authorization is not
supported