Interface ReactiveOAuth2AuthorizedClientProvider
-
- All Known Implementing Classes:
AuthorizationCodeReactiveOAuth2AuthorizedClientProvider
,ClientCredentialsReactiveOAuth2AuthorizedClientProvider
,DelegatingReactiveOAuth2AuthorizedClientProvider
,JwtBearerReactiveOAuth2AuthorizedClientProvider
,PasswordReactiveOAuth2AuthorizedClientProvider
,RefreshTokenReactiveOAuth2AuthorizedClientProvider
- 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 ReactiveOAuth2AuthorizedClientProvider
A strategy for authorizing (or re-authorizing) an OAuth 2.0 Client. Implementations will typically implement a specificauthorization grant
type.- Since:
- 5.2
- See Also:
OAuth2AuthorizedClient
,OAuth2AuthorizationContext
, Section 1.3 Authorization Grant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<OAuth2AuthorizedClient>
authorize(OAuth2AuthorizationContext context)
Attempt to authorize (or re-authorize) theclient
in the provided context.
-
-
-
Method Detail
-
authorize
reactor.core.publisher.Mono<OAuth2AuthorizedClient> authorize(OAuth2AuthorizationContext context)
Attempt to authorize (or re-authorize) theclient
in the provided context. Implementations must return an emptyMono
if authorization is not supported for the specified client, e.g. the provider doesn't support theauthorization grant
type configured for the client.- Parameters:
context
- the context that holds authorization-specific state for the client- Returns:
- the
OAuth2AuthorizedClient
or an emptyMono
if authorization is not supported for the specified client
-
-