Class AuthorizationCodeReactiveOAuth2AuthorizedClientProvider
- java.lang.Object
-
- org.springframework.security.oauth2.client.AuthorizationCodeReactiveOAuth2AuthorizedClientProvider
-
- All Implemented Interfaces:
ReactiveOAuth2AuthorizedClientProvider
public final class AuthorizationCodeReactiveOAuth2AuthorizedClientProvider extends java.lang.Object implements ReactiveOAuth2AuthorizedClientProvider
An implementation of aReactiveOAuth2AuthorizedClientProviderfor theauthorization_codegrant.- Since:
- 5.2
- See Also:
ReactiveOAuth2AuthorizedClientProvider
-
-
Constructor Summary
Constructors Constructor Description AuthorizationCodeReactiveOAuth2AuthorizedClientProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<OAuth2AuthorizedClient>authorize(OAuth2AuthorizationContext context)Attempt to authorize theclientin the providedcontext.
-
-
-
Method Detail
-
authorize
public reactor.core.publisher.Mono<OAuth2AuthorizedClient> authorize(OAuth2AuthorizationContext context)
Attempt to authorize theclientin the providedcontext. Returns an emptyMonoif authorization is not supported, e.g. the client'sauthorization grant typeis notauthorization_codeOR the client is already authorized.- Specified by:
authorizein interfaceReactiveOAuth2AuthorizedClientProvider- Parameters:
context- the context that holds authorization-specific state for the client- Returns:
- an empty
Monoif authorization is not supported or the client is already authorized - Throws:
ClientAuthorizationRequiredException- in order to trigger authorization in which theOAuth2AuthorizationRequestRedirectWebFilterwill catch and initiate the authorization request
-
-