Class UnAuthenticatedServerOAuth2AuthorizedClientRepository
- java.lang.Object
-
- org.springframework.security.oauth2.client.web.server.UnAuthenticatedServerOAuth2AuthorizedClientRepository
-
- All Implemented Interfaces:
ServerOAuth2AuthorizedClientRepository
@Deprecated public class UnAuthenticatedServerOAuth2AuthorizedClientRepository extends java.lang.Object implements ServerOAuth2AuthorizedClientRepository
Deprecated.Provides support for an unauthenticated user. This is useful when running as a process with no user associated to it. The implementation ensures thatServerWebExchangeis null and that theAuthenticationis either null or anonymous to prevent using it incorrectly.- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description UnAuthenticatedServerOAuth2AuthorizedClientRepository()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends OAuth2AuthorizedClient>
reactor.core.publisher.Mono<T>loadAuthorizedClient(java.lang.String clientRegistrationId, org.springframework.security.core.Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)Deprecated.Returns theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-UserAuthentication(Resource Owner) ornullif not available.reactor.core.publisher.Mono<java.lang.Void>removeAuthorizedClient(java.lang.String clientRegistrationId, org.springframework.security.core.Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)Deprecated.Removes theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-UserAuthentication(Resource Owner).reactor.core.publisher.Mono<java.lang.Void>saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)Deprecated.Saves theOAuth2AuthorizedClientassociating it to the provided End-UserAuthentication(Resource Owner).
-
-
-
Method Detail
-
loadAuthorizedClient
public <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient(java.lang.String clientRegistrationId, org.springframework.security.core.Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
Deprecated.Description copied from interface:ServerOAuth2AuthorizedClientRepositoryReturns theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-UserAuthentication(Resource Owner) ornullif not available.- Specified by:
loadAuthorizedClientin interfaceServerOAuth2AuthorizedClientRepository- Type Parameters:
T- a type of OAuth2AuthorizedClient- Parameters:
clientRegistrationId- the identifier for the client's registrationauthentication- the End-UserAuthentication(Resource Owner)serverWebExchange- theServerWebExchange- Returns:
- the
OAuth2AuthorizedClientornullif not available
-
saveAuthorizedClient
public reactor.core.publisher.Mono<java.lang.Void> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)
Deprecated.Description copied from interface:ServerOAuth2AuthorizedClientRepositorySaves theOAuth2AuthorizedClientassociating it to the provided End-UserAuthentication(Resource Owner).- Specified by:
saveAuthorizedClientin interfaceServerOAuth2AuthorizedClientRepository- Parameters:
authorizedClient- the authorized clientauthentication- the End-UserAuthentication(Resource Owner)serverWebExchange- theServerWebExchange
-
removeAuthorizedClient
public reactor.core.publisher.Mono<java.lang.Void> removeAuthorizedClient(java.lang.String clientRegistrationId, org.springframework.security.core.Authentication authentication, org.springframework.web.server.ServerWebExchange serverWebExchange)Deprecated.Description copied from interface:ServerOAuth2AuthorizedClientRepositoryRemoves theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-UserAuthentication(Resource Owner).- Specified by:
removeAuthorizedClientin interfaceServerOAuth2AuthorizedClientRepository- Parameters:
clientRegistrationId- the identifier for the client's registrationauthentication- the End-UserAuthentication(Resource Owner)serverWebExchange- theServerWebExchange
-
-