public final class AuthorizationCodeReactiveOAuth2AuthorizedClientProvider extends java.lang.Object implements ReactiveOAuth2AuthorizedClientProvider
ReactiveOAuth2AuthorizedClientProvider
for the
authorization_code
grant.ReactiveOAuth2AuthorizedClientProvider
Constructor and Description |
---|
AuthorizationCodeReactiveOAuth2AuthorizedClientProvider() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<OAuth2AuthorizedClient> |
authorize(OAuth2AuthorizationContext context)
Attempt to authorize the
client in the provided context . |
public AuthorizationCodeReactiveOAuth2AuthorizedClientProvider()
public reactor.core.publisher.Mono<OAuth2AuthorizedClient> authorize(OAuth2AuthorizationContext context)
client
in the provided context
. Returns an empty Mono
if
authorization is not supported, e.g. the client's
authorization grant type
is
not authorization_code
OR the
client is already authorized.authorize
in interface ReactiveOAuth2AuthorizedClientProvider
context
- the context that holds authorization-specific state for the clientOAuth2AuthorizedClient
or an empty Mono
if
authorization is not supported