Class HttpSessionOAuth2AuthorizationRequestRepository

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest loadAuthorizationRequest​(javax.servlet.http.HttpServletRequest request)
      Returns the OAuth2AuthorizationRequest associated to the provided HttpServletRequest or null if not available.
      org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest​(javax.servlet.http.HttpServletRequest request)
      Removes and returns the OAuth2AuthorizationRequest associated to the provided HttpServletRequest or if not available returns null.
      org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Removes and returns the OAuth2AuthorizationRequest associated to the provided HttpServletRequest and HttpServletResponse or if not available returns null.
      void saveAuthorizationRequest​(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Persists the OAuth2AuthorizationRequest associating it to the provided HttpServletRequest and/or HttpServletResponse.
      void setAllowMultipleAuthorizationRequests​(boolean allowMultipleAuthorizationRequests)
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpSessionOAuth2AuthorizationRequestRepository

        public HttpSessionOAuth2AuthorizationRequestRepository()
    • Method Detail

      • loadAuthorizationRequest

        public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest loadAuthorizationRequest​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: AuthorizationRequestRepository
        Returns the OAuth2AuthorizationRequest associated to the provided HttpServletRequest or null if not available.
        Specified by:
        loadAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
        Parameters:
        request - the HttpServletRequest
        Returns:
        the OAuth2AuthorizationRequest or null if not available
      • saveAuthorizationRequest

        public void saveAuthorizationRequest​(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
        Description copied from interface: AuthorizationRequestRepository
        Persists the OAuth2AuthorizationRequest associating it to the provided HttpServletRequest and/or HttpServletResponse.
        Specified by:
        saveAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
        Parameters:
        authorizationRequest - the OAuth2AuthorizationRequest
        request - the HttpServletRequest
        response - the HttpServletResponse
      • removeAuthorizationRequest

        public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: AuthorizationRequestRepository
        Removes and returns the OAuth2AuthorizationRequest associated to the provided HttpServletRequest or if not available returns null.
        Specified by:
        removeAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
        Parameters:
        request - the HttpServletRequest
        Returns:
        the removed OAuth2AuthorizationRequest or null if not available
      • removeAuthorizationRequest

        public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest​(javax.servlet.http.HttpServletRequest request,
                                                                                                                       javax.servlet.http.HttpServletResponse response)
        Description copied from interface: AuthorizationRequestRepository
        Removes and returns the OAuth2AuthorizationRequest associated to the provided HttpServletRequest and HttpServletResponse or if not available returns null.
        Specified by:
        removeAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
        Parameters:
        request - the HttpServletRequest
        response - the HttpServletResponse
        Returns:
        the OAuth2AuthorizationRequest or null if not available
      • setAllowMultipleAuthorizationRequests

        @Deprecated
        public void setAllowMultipleAuthorizationRequests​(boolean allowMultipleAuthorizationRequests)
        Deprecated.
        Configure if multiple OAuth2AuthorizationRequests should be stored per session. Default is false (not allow multiple OAuth2AuthorizationRequest per session).
        Parameters:
        allowMultipleAuthorizationRequests - true allows more than one OAuth2AuthorizationRequest to be stored per session.
        Since:
        5.5