Class AadB2cAuthorizationRequestResolver
java.lang.Object
com.azure.spring.cloud.autoconfigure.aadb2c.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 Summary
ConstructorDescriptionAadB2cAuthorizationRequestResolver
(AadB2cProperties properties, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver delegateResolver) Creates a new instance ofAadB2cAuthorizationRequestResolver
.AadB2cAuthorizationRequestResolver
(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository repository, AadB2cProperties properties) Creates a new instance ofAadB2cAuthorizationRequestResolver
. -
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
-
AadB2cAuthorizationRequestResolver
public AadB2cAuthorizationRequestResolver(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository repository, AadB2cProperties properties) Creates a new instance ofAadB2cAuthorizationRequestResolver
.- Parameters:
repository
- the client registration repositoryproperties
- the AAD B2C properties
-
AadB2cAuthorizationRequestResolver
public AadB2cAuthorizationRequestResolver(AadB2cProperties properties, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver delegateResolver) Creates a new instance ofAadB2cAuthorizationRequestResolver
.- Parameters:
properties
- the AAD B2C properties.delegateResolver
- the delegate resolver.
-
-
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 registrationId) Returns theOAuth2AuthorizationRequest
resolved from the providedHttpServletRequest
ornull
if not available.- Specified by:
resolve
in interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver
- Parameters:
request
- theHttpServletRequest
registrationId
- the registrationId to use- Returns:
- the resolved
OAuth2AuthorizationRequest
ornull
if not available
-