public class JacksonHttpSessionOAuth2AuthorizedClientRepository extends Object implements org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
OAuth2AuthorizedClientRepository
that stores OAuth2AuthorizedClient
's in the
HttpSession
. To make it compatible with different spring versions. Refs:
https://github.com/spring-projects/spring-security/issues/9204OAuth2AuthorizedClientRepository
,
OAuth2AuthorizedClient
Constructor and Description |
---|
JacksonHttpSessionOAuth2AuthorizedClientRepository() |
Modifier and Type | Method and Description |
---|---|
<T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient> |
loadAuthorizedClient(String clientRegistrationId,
org.springframework.security.core.Authentication principal,
javax.servlet.http.HttpServletRequest request) |
void |
removeAuthorizedClient(String clientRegistrationId,
org.springframework.security.core.Authentication principal,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
saveAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient authorizedClient,
org.springframework.security.core.Authentication principal,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public JacksonHttpSessionOAuth2AuthorizedClientRepository()
public <T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient> T loadAuthorizedClient(String clientRegistrationId, org.springframework.security.core.Authentication principal, javax.servlet.http.HttpServletRequest request)
loadAuthorizedClient
in interface org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
public void saveAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
saveAuthorizedClient
in interface org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
public void removeAuthorizedClient(String clientRegistrationId, org.springframework.security.core.Authentication principal, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
removeAuthorizedClient
in interface org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.