Class HttpCookieOAuth2AuthorizationRequestRepository

  • All Implemented Interfaces:
    org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>

    @Component
    public class HttpCookieOAuth2AuthorizationRequestRepository
    extends Object
    implements org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
    • Constructor Detail

      • HttpCookieOAuth2AuthorizationRequestRepository

        public HttpCookieOAuth2AuthorizationRequestRepository()
    • Method Detail

      • loadAuthorizationRequest

        public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest loadAuthorizationRequest​(javax.servlet.http.HttpServletRequest request)
        Specified by:
        loadAuthorizationRequest in interface org.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,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
        Specified by:
        saveAuthorizationRequest in interface org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
      • removeAuthorizationRequest

        public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest​(javax.servlet.http.HttpServletRequest request)
        Specified by:
        removeAuthorizationRequest in interface org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
      • removeAuthorizationRequestCookies

        public void removeAuthorizationRequestCookies​(javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
      • getRedirectUri

        public Optional<String> getRedirectUri​(javax.servlet.http.HttpServletRequest request)