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 Summary
ConstructorDescriptionAadOAuth2AuthorizationRequestResolver
(String authorizationRequestBaseUri, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, AadAuthenticationProperties properties) Creates a new instance ofAadOAuth2AuthorizationRequestResolver
.AadOAuth2AuthorizationRequestResolver
(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, AadAuthenticationProperties properties) Creates a new instance ofAadOAuth2AuthorizationRequestResolver
. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest
resolve
(jakarta.servlet.http.HttpServletRequest request) Returns theOAuth2AuthorizationRequest
resolved from the providedHttpServletRequest
ornull
if not available.org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest
Returns theOAuth2AuthorizationRequest
resolved from the providedHttpServletRequest
ornull
if not available.
-
Constructor Details
-
AadOAuth2AuthorizationRequestResolver
public AadOAuth2AuthorizationRequestResolver(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, AadAuthenticationProperties properties) Creates a new instance ofAadOAuth2AuthorizationRequestResolver
.- Parameters:
clientRegistrationRepository
- the client registration repositoryproperties
- the AAD authentication properties
-
AadOAuth2AuthorizationRequestResolver
public AadOAuth2AuthorizationRequestResolver(String authorizationRequestBaseUri, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, AadAuthenticationProperties properties) Creates a new instance ofAadOAuth2AuthorizationRequestResolver
.- Parameters:
authorizationRequestBaseUri
- the client registration repositoryclientRegistrationRepository
- the client registration repositoryproperties
- the AAD authentication properties
-
-
Method Details
-
resolve
public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve(jakarta.servlet.http.HttpServletRequest request) Returns theOAuth2AuthorizationRequest
resolved from the providedHttpServletRequest
ornull
if not available.- Specified by:
resolve
in interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver
- Parameters:
request
- theHttpServletRequest
- Returns:
- the resolved
OAuth2AuthorizationRequest
ornull
if not available
-
resolve
public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve(jakarta.servlet.http.HttpServletRequest request, String clientRegistrationId) Returns theOAuth2AuthorizationRequest
resolved from the providedHttpServletRequest
ornull
if not available.- Specified by:
resolve
in interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver
- Parameters:
request
- theHttpServletRequest
clientRegistrationId
- the clientRegistrationId to use- Returns:
- the resolved
OAuth2AuthorizationRequest
ornull
if not available
-