Class AadResourceServerConfiguration.DefaultAadResourceServerWebSecurityConfigurerAdapter
java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
com.azure.spring.cloud.autoconfigure.aad.AadResourceServerWebSecurityConfigurerAdapter
com.azure.spring.cloud.autoconfigure.aad.configuration.AadResourceServerConfiguration.DefaultAadResourceServerWebSecurityConfigurerAdapter
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<jakarta.servlet.Filter,
,org.springframework.security.config.annotation.web.builders.WebSecurity> org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
- Enclosing class:
- AadResourceServerConfiguration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled=true)
@ConditionalOnMissingBean(org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.class)
@ConditionalOnExpression("!\'${spring.cloud.azure.active-directory.application-type}\'.equalsIgnoreCase(\'web_application_and_resource_server\')")
public static class AadResourceServerConfiguration.DefaultAadResourceServerWebSecurityConfigurerAdapter
extends AadResourceServerWebSecurityConfigurerAdapter
Default configuration class for using AAD authentication and authorization. User can write another configuration
bean to override it.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configure
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) configureMethods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
Constructor Details
-
DefaultAadResourceServerWebSecurityConfigurerAdapter
public DefaultAadResourceServerWebSecurityConfigurerAdapter()
-
-
Method Details
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception configure- Overrides:
configure
in classAadResourceServerWebSecurityConfigurerAdapter
- Parameters:
http
- theHttpSecurity
to use- Throws:
Exception
- Configuration failed
-