SynchronizedDelegatingOAuth2AuthorizedClientManager or
InMemoryOAuth2AuthorizedClientService,
which is used internally by
SynchronizedDelegatingOAuth2AuthorizedClientManager.@Deprecated public class InMemoryOAuth2AuthorizedClientRepository extends Object implements org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
OAuth2AuthorizedClientRepository that provides support for
storing OAuth2AuthorizedClient for service-to-service communications.
This stores the OAuth2AuthorizedClient by the client registration ID irrespective of any
Authentication or HttpServletRequest. This should not be used when it is
essential to tie the stored OAuth2AuthorizedClient to the user or session.
| Constructor and Description |
|---|
InMemoryOAuth2AuthorizedClientRepository()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient> |
loadAuthorizedClient(String clientRegistrationId,
org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
void |
removeAuthorizedClient(String clientRegistrationId,
org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
void |
saveAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient authorizedClient,
org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
public InMemoryOAuth2AuthorizedClientRepository()
public <T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient> T loadAuthorizedClient(String clientRegistrationId, org.springframework.security.core.Authentication authentication, javax.servlet.http.HttpServletRequest request)
loadAuthorizedClient in interface org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepositorypublic void saveAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient authorizedClient,
org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
saveAuthorizedClient in interface org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepositorypublic void removeAuthorizedClient(String clientRegistrationId, org.springframework.security.core.Authentication authentication, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
removeAuthorizedClient in interface org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepositoryCopyright © 2021. All rights reserved.