Interface ReactiveOAuth2AuthorizedClientManager
-
- All Known Implementing Classes:
AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager
,DefaultReactiveOAuth2AuthorizedClientManager
- 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 ReactiveOAuth2AuthorizedClientManager
Implementations of this interface are responsible for the overall management ofAuthorized Client(s)
.The primary responsibilities include:
- Authorizing (or re-authorizing) an OAuth 2.0 Client
by leveraging a
ReactiveOAuth2AuthorizedClientProvider
(s). - Delegating the persistence of an
OAuth2AuthorizedClient
, typically using aReactiveOAuth2AuthorizedClientService
ORServerOAuth2AuthorizedClientRepository
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<OAuth2AuthorizedClient>
authorize(OAuth2AuthorizeRequest authorizeRequest)
Attempt to authorize or re-authorize (if required) theclient
identified by the providedclientRegistrationId
.
-
-
-
Method Detail
-
authorize
reactor.core.publisher.Mono<OAuth2AuthorizedClient> authorize(OAuth2AuthorizeRequest authorizeRequest)
Attempt to authorize or re-authorize (if required) theclient
identified by the providedclientRegistrationId
. Implementations must return an emptyMono
if authorization is not supported for the specified client, e.g. the associatedReactiveOAuth2AuthorizedClientProvider
(s) does not support theauthorization 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. arefresh token
is not available OR theaccess token
is not expired.- Parameters:
authorizeRequest
- the authorize request- Returns:
- the
OAuth2AuthorizedClient
or an emptyMono
if authorization is not supported for the specified client
-
-