@FunctionalInterface public interface OAuth2AuthorizedClientManager
The primary responsibilities include:
@Nullable OAuth2AuthorizedClient authorize(OAuth2AuthorizeRequest authorizeRequest)
clientidentified by the provided
clientRegistrationId. Implementations must return
nullif authorization is not supported for the specified client, e.g. the associated
OAuth2AuthorizedClientProvider(s) does not support the
authorization granttype configured for the client.
In the case of re-authorization, implementations must return the provided
if re-authorization is not supported for the client OR is not required,
refresh token is not available OR
access token is not expired.
authorizeRequest- the authorize request
nullif authorization is not supported for the specified client