Class AadB2cAuthorizationRequestResolver

  • All Implemented Interfaces:
    org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver

    public class AadB2cAuthorizationRequestResolver
    extends Object
    implements org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver
    This class handles the OAuth2 request procession for AAD B2C authorization.

    Userflow name is added in the request link and forgotten password redirection to password-reset page is added on the base of default OAuth2 authorization resolve.

    • Constructor Detail

      • AadB2cAuthorizationRequestResolver

        public AadB2cAuthorizationRequestResolver​(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository repository,
                                                  AadB2cProperties properties)
        Creates a new instance of AadB2cAuthorizationRequestResolver.
        Parameters:
        repository - the client registration repository
        properties - the AAD B2C properties
    • Method Detail

      • resolve

        public 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.
        Specified by:
        resolve in interface org.springframework.security.oauth2.client.web.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,
                                                                                                    String registrationId)
        Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
        Specified by:
        resolve in interface org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver
        Parameters:
        request - the HttpServletRequest
        registrationId - the registrationId to use
        Returns:
        the resolved OAuth2AuthorizationRequest or null if not available