Class AadWebApplicationConfiguration.DefaultAadWebSecurityConfigurerAdapter

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
com.azure.spring.cloud.autoconfigure.aad.AadWebSecurityConfigurerAdapter
com.azure.spring.cloud.autoconfigure.aad.configuration.AadWebApplicationConfiguration.DefaultAadWebSecurityConfigurerAdapter
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:
AadWebApplicationConfiguration

@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 AadWebApplicationConfiguration.DefaultAadWebSecurityConfigurerAdapter extends AadWebSecurityConfigurerAdapter
Sample configuration to make AzureActiveDirectoryOAuth2UserService take effect.
  • Constructor Details

    • DefaultAadWebSecurityConfigurerAdapter

      public DefaultAadWebSecurityConfigurerAdapter()
  • Method Details

    • configure

      protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      configure
      Overrides:
      configure in class AadWebSecurityConfigurerAdapter
      Parameters:
      http - the HttpSecurity to use
      Throws:
      Exception - Configuration failed