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.cloud.autoconfigure.aadb2c.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.
- See Also:
-
AbstractHttpConfigurer
-
Constructor Summary
ConstructorDescriptionAadB2cOidcLoginConfigurer
(AadB2cLogoutSuccessHandler handler, AadB2cAuthorizationRequestResolver resolver) Creates a new instance ofAadB2cOidcLoginConfigurer
.AadB2cOidcLoginConfigurer
(org.springframework.security.web.authentication.logout.LogoutSuccessHandler handler, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver resolver, org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient) Creates a new instance ofAadB2cOidcLoginConfigurer
. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest>
Gets the access token response client.void
init
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Initialize the SecurityBuilder.Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer
disable, getSecurityContextHolderStrategy, withObjectPostProcessor
Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, and, configure, getBuilder, postProcess, setBuilder
-
Constructor Details
-
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
-
AadB2cOidcLoginConfigurer
public AadB2cOidcLoginConfigurer(org.springframework.security.web.authentication.logout.LogoutSuccessHandler handler, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver resolver, org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient) Creates a new instance ofAadB2cOidcLoginConfigurer
.- Parameters:
handler
- the AAD B2C logout success handlerresolver
- the AAD B2C authorization request resolveraccessTokenResponseClient
- the AAD B2C access token response client
-
-
Method Details
-
init
public void init(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Initialize the SecurityBuilder.- Specified by:
init
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,
org.springframework.security.config.annotation.web.builders.HttpSecurity> - Overrides:
init
in classorg.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,
org.springframework.security.config.annotation.web.builders.HttpSecurity> - Parameters:
http
- the http- Throws:
Exception
- failed to initialize SecurityBuilder
-
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
-