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
Constructors Constructor Description AadB2cAuthorizationRequestResolver(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository repository, AadB2cProperties properties)Creates a new instance ofAadB2cAuthorizationRequestResolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequestresolve(javax.servlet.http.HttpServletRequest request)Returns theOAuth2AuthorizationRequestresolved from the providedHttpServletRequestornullif not available.org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequestresolve(javax.servlet.http.HttpServletRequest request, String registrationId)Returns theOAuth2AuthorizationRequestresolved from the providedHttpServletRequestornullif not available.
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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
-
-