@Deprecated public class UnAuthenticatedServerOAuth2AuthorizedClientRepository extends java.lang.Object implements ServerOAuth2AuthorizedClientRepository
ServerWebExchange
is null and that the Authentication
is either null or
anonymous to prevent using it incorrectly.Constructor and Description |
---|
UnAuthenticatedServerOAuth2AuthorizedClientRepository()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T extends OAuth2AuthorizedClient> |
loadAuthorizedClient(java.lang.String clientRegistrationId,
Authentication authentication,
org.springframework.web.server.ServerWebExchange serverWebExchange)
Deprecated.
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,
Authentication authentication,
org.springframework.web.server.ServerWebExchange serverWebExchange)
Deprecated.
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,
Authentication authentication,
org.springframework.web.server.ServerWebExchange serverWebExchange)
Deprecated.
Saves the
OAuth2AuthorizedClient associating it to the provided End-User
Authentication (Resource Owner). |
public UnAuthenticatedServerOAuth2AuthorizedClientRepository()
public <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient(java.lang.String clientRegistrationId, Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
ServerOAuth2AuthorizedClientRepository
OAuth2AuthorizedClient
associated to the provided client
registration identifier and End-User Authentication
(Resource Owner) or
null
if not available.loadAuthorizedClient
in interface ServerOAuth2AuthorizedClientRepository
T
- a type of OAuth2AuthorizedClientclientRegistrationId
- the identifier for the client's registrationauthentication
- the End-User Authentication
(Resource Owner)serverWebExchange
- the ServerWebExchange
OAuth2AuthorizedClient
or null
if not availablepublic reactor.core.publisher.Mono<java.lang.Void> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
ServerOAuth2AuthorizedClientRepository
OAuth2AuthorizedClient
associating it to the provided End-User
Authentication
(Resource Owner).saveAuthorizedClient
in interface ServerOAuth2AuthorizedClientRepository
authorizedClient
- the authorized clientauthentication
- the End-User Authentication
(Resource Owner)serverWebExchange
- the ServerWebExchange
public reactor.core.publisher.Mono<java.lang.Void> removeAuthorizedClient(java.lang.String clientRegistrationId, Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
ServerOAuth2AuthorizedClientRepository
OAuth2AuthorizedClient
associated to the provided client
registration identifier and End-User Authentication
(Resource Owner).removeAuthorizedClient
in interface ServerOAuth2AuthorizedClientRepository
clientRegistrationId
- the identifier for the client's registrationauthentication
- the End-User Authentication
(Resource Owner)serverWebExchange
- the ServerWebExchange