public interface ReactiveOAuth2AuthorizedClientManager
Authorized Client(s).
The primary responsibilities include:
ReactiveOAuth2AuthorizedClientProvider(s).OAuth2AuthorizedClient,
typically using a ReactiveOAuth2AuthorizedClientService OR ServerOAuth2AuthorizedClientRepository.| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<OAuth2AuthorizedClient> |
authorize(OAuth2AuthorizeRequest authorizeRequest)
Attempt to authorize or re-authorize (if required) the
client
identified by the provided clientRegistrationId. |
reactor.core.publisher.Mono<OAuth2AuthorizedClient> authorize(OAuth2AuthorizeRequest authorizeRequest)
client
identified by the provided clientRegistrationId.
Implementations must return an empty Mono if authorization is not supported for the specified client,
e.g. the associated ReactiveOAuth2AuthorizedClientProvider(s) does not support
the authorization grant type configured for the client.
In the case of re-authorization, implementations must return the provided authorized client
if re-authorization is not supported for the client OR is not required,
e.g. a refresh token is not available OR
the access token is not expired.
authorizeRequest - the authorize requestOAuth2AuthorizedClient or an empty Mono if authorization is not supported for the specified client