Class AadOAuth2AuthorizationRequestResolver

java.lang.Object
com.azure.spring.cloud.autoconfigure.aad.AadOAuth2AuthorizationRequestResolver
All Implemented Interfaces:
org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver

public class AadOAuth2AuthorizationRequestResolver extends Object implements org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver
To add conditional policy claims to authorization URL.
See Also:
  • OAuth2AuthorizationRequestResolver
  • Constructor Details

    • AadOAuth2AuthorizationRequestResolver

      public AadOAuth2AuthorizationRequestResolver(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, AadAuthenticationProperties properties)
      Creates a new instance of AadOAuth2AuthorizationRequestResolver.
      Parameters:
      clientRegistrationRepository - the client registration repository
      properties - the AAD authentication properties
    • AadOAuth2AuthorizationRequestResolver

      public AadOAuth2AuthorizationRequestResolver(String authorizationRequestBaseUri, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, AadAuthenticationProperties properties)
      Creates a new instance of AadOAuth2AuthorizationRequestResolver.
      Parameters:
      authorizationRequestBaseUri - the client registration repository
      clientRegistrationRepository - the client registration repository
      properties - the AAD authentication properties
  • Method Details

    • resolve

      public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve(jakarta.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(jakarta.servlet.http.HttpServletRequest request, String clientRegistrationId)
      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
      clientRegistrationId - the clientRegistrationId to use
      Returns:
      the resolved OAuth2AuthorizationRequest or null if not available