public final class WebSessionServerOAuth2AuthorizedClientRepository extends java.lang.Object implements ServerOAuth2AuthorizedClientRepository
OAuth2AuthorizedClientRepository that stores
OAuth2AuthorizedClient's in the HttpSession.OAuth2AuthorizedClientRepository,
OAuth2AuthorizedClient| Constructor and Description |
|---|
WebSessionServerOAuth2AuthorizedClientRepository() |
| Modifier and Type | Method and Description |
|---|---|
<T extends OAuth2AuthorizedClient> |
loadAuthorizedClient(java.lang.String clientRegistrationId,
org.springframework.security.core.Authentication principal,
org.springframework.web.server.ServerWebExchange exchange)
Returns the
OAuth2AuthorizedClient associated to the
provided client registration identifier and End-User Authentication (Resource Owner)
or null if not available. |
reactor.core.publisher.Mono<java.lang.Void> |
removeAuthorizedClient(java.lang.String clientRegistrationId,
org.springframework.security.core.Authentication principal,
org.springframework.web.server.ServerWebExchange exchange)
Removes the
OAuth2AuthorizedClient associated to the
provided client registration identifier and End-User Authentication (Resource Owner). |
reactor.core.publisher.Mono<java.lang.Void> |
saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient,
org.springframework.security.core.Authentication principal,
org.springframework.web.server.ServerWebExchange exchange)
Saves the
OAuth2AuthorizedClient associating it to
the provided End-User Authentication (Resource Owner). |
public WebSessionServerOAuth2AuthorizedClientRepository()
public <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient(java.lang.String clientRegistrationId, org.springframework.security.core.Authentication principal, org.springframework.web.server.ServerWebExchange exchange)
ServerOAuth2AuthorizedClientRepositoryOAuth2AuthorizedClient associated to the
provided client registration identifier and End-User Authentication (Resource Owner)
or null if not available.loadAuthorizedClient in interface ServerOAuth2AuthorizedClientRepositoryT - a type of OAuth2AuthorizedClientclientRegistrationId - the identifier for the client's registrationprincipal - the End-User Authentication (Resource Owner)exchange - the ServerWebExchangeOAuth2AuthorizedClient or null if not availablepublic reactor.core.publisher.Mono<java.lang.Void> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal, org.springframework.web.server.ServerWebExchange exchange)
ServerOAuth2AuthorizedClientRepositoryOAuth2AuthorizedClient associating it to
the provided End-User Authentication (Resource Owner).saveAuthorizedClient in interface ServerOAuth2AuthorizedClientRepositoryauthorizedClient - the authorized clientprincipal - the End-User Authentication (Resource Owner)exchange - the ServerWebExchangepublic reactor.core.publisher.Mono<java.lang.Void> removeAuthorizedClient(java.lang.String clientRegistrationId,
org.springframework.security.core.Authentication principal,
org.springframework.web.server.ServerWebExchange exchange)
ServerOAuth2AuthorizedClientRepositoryOAuth2AuthorizedClient associated to the
provided client registration identifier and End-User Authentication (Resource Owner).removeAuthorizedClient in interface ServerOAuth2AuthorizedClientRepositoryclientRegistrationId - the identifier for the client's registrationprincipal - the End-User Authentication (Resource Owner)exchange - the ServerWebExchange