Interface ReactiveOAuth2AuthorizedClientService
- 
- All Known Implementing Classes:
 InMemoryReactiveOAuth2AuthorizedClientService,R2dbcReactiveOAuth2AuthorizedClientService
public interface ReactiveOAuth2AuthorizedClientServiceImplementations of this interface are responsible for the management ofAuthorized Client(s), which provide the purpose of associating anAccess Tokencredential to aClientand Resource Owner, who is thePrincipalthat originally granted the authorization.- Since:
 - 5.1
 - See Also:
 OAuth2AuthorizedClient,ClientRegistration,Authentication,OAuth2AccessToken
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends OAuth2AuthorizedClient>
reactor.core.publisher.Mono<T>loadAuthorizedClient(java.lang.String clientRegistrationId, java.lang.String principalName)Returns theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname ornullif not available.reactor.core.publisher.Mono<java.lang.Void>removeAuthorizedClient(java.lang.String clientRegistrationId, java.lang.String principalName)Removes theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname.reactor.core.publisher.Mono<java.lang.Void>saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal)Saves theOAuth2AuthorizedClientassociating it to the provided End-UserAuthentication(Resource Owner). 
 - 
 
- 
- 
Method Detail
- 
loadAuthorizedClient
<T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient(java.lang.String clientRegistrationId, java.lang.String principalName)
Returns theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname ornullif not available.- Type Parameters:
 T- a type of OAuth2AuthorizedClient- Parameters:
 clientRegistrationId- the identifier for the client's registrationprincipalName- the name of the End-UserPrincipal(Resource Owner)- Returns:
 - the 
OAuth2AuthorizedClientornullif not available 
 
- 
saveAuthorizedClient
reactor.core.publisher.Mono<java.lang.Void> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal)
Saves theOAuth2AuthorizedClientassociating it to the provided End-UserAuthentication(Resource Owner).- Parameters:
 authorizedClient- the authorized clientprincipal- the End-UserAuthentication(Resource Owner)
 
- 
removeAuthorizedClient
reactor.core.publisher.Mono<java.lang.Void> removeAuthorizedClient(java.lang.String clientRegistrationId, java.lang.String principalName)Removes theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname.- Parameters:
 clientRegistrationId- the identifier for the client's registrationprincipalName- the name of the End-UserPrincipal(Resource Owner)
 
 - 
 
 -