Class AADB2COidcLoginConfigurer
- java.lang.Object
-
- org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B>
-
- org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<AADB2COidcLoginConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
-
- com.azure.spring.autoconfigure.b2c.AADB2COidcLoginConfigurer
-
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
public class AADB2COidcLoginConfigurer extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<AADB2COidcLoginConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
Configure B2C OAUTH2 login properties.
-
-
Constructor Summary
Constructors Constructor Description AADB2COidcLoginConfigurer(AADB2CLogoutSuccessHandler handler, AADB2CAuthorizationRequestResolver resolver)Creates a new instance ofAADB2COidcLoginConfigurer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest>accessTokenResponseClient()Gets the access token response client.voidinit(org.springframework.security.config.annotation.web.builders.HttpSecurity http)-
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, withObjectPostProcessor
-
-
-
-
Constructor Detail
-
AADB2COidcLoginConfigurer
public AADB2COidcLoginConfigurer(AADB2CLogoutSuccessHandler handler, AADB2CAuthorizationRequestResolver resolver)
Creates a new instance ofAADB2COidcLoginConfigurer.- Parameters:
handler- the AAD B2C logout success handlerresolver- the AAD B2C authorization request resolver
-
-
Method Detail
-
init
public void init(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception- Specified by:
initin interfaceorg.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>- Overrides:
initin classorg.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>- Throws:
Exception
-
accessTokenResponseClient
protected org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient()
Gets the access token response client.- Returns:
- the access token response client
-
-