Class HttpCookieOAuth2AuthorizationRequestRepository
java.lang.Object
io.camunda.optimize.rest.security.cloud.HttpCookieOAuth2AuthorizationRequestRepository
- All Implemented Interfaces:
org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
public class HttpCookieOAuth2AuthorizationRequestRepository
extends Object
implements org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
Stores pending authorization requests in a cookie instead of a local session.
Originates from https://stackoverflow.com/q/49095383.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpCookieOAuth2AuthorizationRequestRepository(ConfigurationService configurationService, AuthorizationRequestCookieValueMapper authorizationRequestCookieValueMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequestloadAuthorizationRequest(jakarta.servlet.http.HttpServletRequest request) org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequestremoveAuthorizationRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidsaveAuthorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-
Constructor Details
-
HttpCookieOAuth2AuthorizationRequestRepository
public HttpCookieOAuth2AuthorizationRequestRepository(ConfigurationService configurationService, AuthorizationRequestCookieValueMapper authorizationRequestCookieValueMapper)
-
-
Method Details
-
loadAuthorizationRequest
public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest loadAuthorizationRequest(jakarta.servlet.http.HttpServletRequest request) - Specified by:
loadAuthorizationRequestin interfaceorg.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
-
saveAuthorizationRequest
public void saveAuthorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Specified by:
saveAuthorizationRequestin interfaceorg.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
-
removeAuthorizationRequest
public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Specified by:
removeAuthorizationRequestin interfaceorg.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
-