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 aReactiveOAuth2AuthorizedClientProvider
for theauthorization_code
grant.- 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 theclient
in the providedcontext
.
-
-
-
Method Detail
-
authorize
public reactor.core.publisher.Mono<OAuth2AuthorizedClient> authorize(OAuth2AuthorizationContext context)
Attempt to authorize theclient
in the providedcontext
. Returns an emptyMono
if authorization is not supported, e.g. the client'sauthorization grant type
is notauthorization_code
OR the client is already authorized.- Specified by:
authorize
in interfaceReactiveOAuth2AuthorizedClientProvider
- Parameters:
context
- the context that holds authorization-specific state for the client- Returns:
- the
OAuth2AuthorizedClient
or an emptyMono
if authorization is not supported
-
-