public class HttpCookieOAuth2AuthorizationRequestRepository
extends java.lang.Object
implements org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEMON_REDIRECT_URI_COOKIE_PARAM_NAME |
| Constructor and Description |
|---|
HttpCookieOAuth2AuthorizationRequestRepository(LemonProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteCookies(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Utility for deleting related cookies
|
org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest |
loadAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
Load authorization request from cookie
|
org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest |
removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request) |
void |
saveAuthorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Save authorization request in cookie
|
public static final java.lang.String LEMON_REDIRECT_URI_COOKIE_PARAM_NAME
public HttpCookieOAuth2AuthorizationRequestRepository(LemonProperties properties)
public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest loadAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
loadAuthorizationRequest in interface org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>public void saveAuthorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
saveAuthorizationRequest in interface org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
removeAuthorizationRequest in interface org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>public static void deleteCookies(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)