@FunctionalInterface
public interface ReactiveOAuth2AuthorizedClientProvider
authorization grant
type.OAuth2AuthorizedClient
,
OAuth2AuthorizationContext
,
Section
1.3 Authorization GrantModifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<OAuth2AuthorizedClient> |
authorize(OAuth2AuthorizationContext context)
Attempt to authorize (or re-authorize) the
client in the provided
context. |
reactor.core.publisher.Mono<OAuth2AuthorizedClient> authorize(OAuth2AuthorizationContext context)
client
in the provided
context. Implementations must return an empty Mono
if authorization is not
supported for the specified client, e.g. the provider doesn't support the
authorization grant
type
configured for the client.context
- the context that holds authorization-specific state for the clientOAuth2AuthorizedClient
or an empty Mono
if
authorization is not supported for the specified client