Class InMemoryOAuth2AuthorizedClientRepository
java.lang.Object
com.broadleafcommerce.orderoperation.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.
TODO: move this to a broadleaf oauth2 client dependency
https://github.com/BroadleafCommerce/MicroPM/issues/1924
- Author:
- Nick Crum (ncrum)
-
Constructor Summary
-
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
.