Class InMemoryOAuth2AuthorizedClientRepository
java.lang.Object
com.broadleafcommerce.cartoperation.oauth2.client.web.InMemoryOAuth2AuthorizedClientRepository
- All Implemented Interfaces:
org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
@Deprecated
public class InMemoryOAuth2AuthorizedClientRepository
extends Object
implements org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
Deprecated.
In-memory implementation of
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.
- Author:
- Nick Crum (ncrum)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient>
TloadAuthorizedClient
(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.
-
Constructor Details
-
InMemoryOAuth2AuthorizedClientRepository
public InMemoryOAuth2AuthorizedClientRepository()Deprecated.
-
-
Method Details
-
loadAuthorizedClient
public <T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient> T loadAuthorizedClient(String clientRegistrationId, org.springframework.security.core.Authentication authentication, javax.servlet.http.HttpServletRequest request) Deprecated.- Specified by:
loadAuthorizedClient
in interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
-
saveAuthorizedClient
public 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.- Specified by:
saveAuthorizedClient
in interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
-
removeAuthorizedClient
public void removeAuthorizedClient(String clientRegistrationId, org.springframework.security.core.Authentication authentication, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.- Specified by:
removeAuthorizedClient
in interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
-
SynchronizedDelegatingOAuth2AuthorizedClientManager
orInMemoryOAuth2AuthorizedClientService
, which is used internally bySynchronizedDelegatingOAuth2AuthorizedClientManager
.