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
ConstructorsConstructorDescriptionAadB2cAuthorizationRequestResolver(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.OAuth2AuthorizationRequestresolve(javax.servlet.http.HttpServletRequest request) Returns theOAuth2AuthorizationRequestresolved from the providedHttpServletRequestornullif not available.org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequestReturns theOAuth2AuthorizationRequestresolved from the providedHttpServletRequestornullif 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(javax.servlet.http.HttpServletRequest request) Returns theOAuth2AuthorizationRequestresolved from the providedHttpServletRequestornullif not available.- Specified by:
resolvein interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver- Parameters:
request- theHttpServletRequest- Returns:
- the resolved
OAuth2AuthorizationRequestornullif not available
-
resolve
public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest resolve(javax.servlet.http.HttpServletRequest request, String registrationId) Returns theOAuth2AuthorizationRequestresolved from the providedHttpServletRequestornullif not available.- Specified by:
resolvein interfaceorg.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver- Parameters:
request- theHttpServletRequestregistrationId- the registrationId to use- Returns:
- the resolved
OAuth2AuthorizationRequestornullif not available
-