Class DefaultOAuth2AuthorizationRequestResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve​(javax.servlet.http.HttpServletRequest request)
      Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
      org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve​(javax.servlet.http.HttpServletRequest request, java.lang.String registrationId)
      Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
      void setAuthorizationRequestCustomizer​(java.util.function.Consumer<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest.Builder> authorizationRequestCustomizer)
      Sets the Consumer to be provided the OAuth2AuthorizationRequest.Builder allowing for further customizations.
      • Methods inherited from class java.lang.Object

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

      • DefaultOAuth2AuthorizationRequestResolver

        public DefaultOAuth2AuthorizationRequestResolver​(ClientRegistrationRepository clientRegistrationRepository,
                                                         java.lang.String authorizationRequestBaseUri)
        Constructs a DefaultOAuth2AuthorizationRequestResolver using the provided parameters.
        Parameters:
        clientRegistrationRepository - the repository of client registrations
        authorizationRequestBaseUri - the base URI used for resolving authorization requests
    • Method Detail

      • resolve

        public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: OAuth2AuthorizationRequestResolver
        Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
        Specified by:
        resolve in interface OAuth2AuthorizationRequestResolver
        Parameters:
        request - the HttpServletRequest
        Returns:
        the resolved OAuth2AuthorizationRequest or null if not available
      • resolve

        public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve​(javax.servlet.http.HttpServletRequest request,
                                                                                                    java.lang.String registrationId)
        Description copied from interface: OAuth2AuthorizationRequestResolver
        Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
        Specified by:
        resolve in interface OAuth2AuthorizationRequestResolver
        Parameters:
        request - the HttpServletRequest
        registrationId - the clientRegistrationId to use
        Returns:
        the resolved OAuth2AuthorizationRequest or null if not available
      • setAuthorizationRequestCustomizer

        public void setAuthorizationRequestCustomizer​(java.util.function.Consumer<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest.Builder> authorizationRequestCustomizer)
        Sets the Consumer to be provided the OAuth2AuthorizationRequest.Builder allowing for further customizations.
        Parameters:
        authorizationRequestCustomizer - the Consumer to be provided the OAuth2AuthorizationRequest.Builder
        Since:
        5.3