@Configuration @ConditionalOnBean(value=org.springframework.security.config.annotation.ObjectPostProcessor.class) @ConditionalOnMissingBean(value=org.springframework.security.authentication.AuthenticationManager.class) @Order(value=0) public class AuthenticationManagerConfiguration extends Object
AuthenticationManager
. Can be
disabled by providing a bean of type AuthenticationManager, or by autowiring an
AuthenticationManagerBuilder
into a method in one of your configuration
classes. The value provided by this configuration will become the "global"
authentication manager (from Spring Security), or the parent of the global instance.
Thus it acts as a fallback when no others are provided, is used by method security if
enabled, and as a parent authentication manager for "local" authentication managers in
individual filter chains.Modifier and Type | Class and Description |
---|---|
protected static class |
AuthenticationManagerConfiguration.AuthenticationManagerConfigurationListener
ApplicationListener to autowire the AuthenticationEventPublisher
into the AuthenticationManager . |
Constructor and Description |
---|
AuthenticationManagerConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.authentication.AuthenticationManager |
authenticationManager(org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration configuration) |
AuthenticationManagerConfiguration.AuthenticationManagerConfigurationListener |
authenticationManagerConfigurationListener() |
static org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration.SpringBootAuthenticationConfigurerAdapter |
springBootAuthenticationConfigurerAdapter(SecurityProperties securityProperties,
List<SecurityPrerequisite> dependencies) |
@Bean @Primary public org.springframework.security.authentication.AuthenticationManager authenticationManager(org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration configuration) throws Exception
Exception
@Bean public static org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration.SpringBootAuthenticationConfigurerAdapter springBootAuthenticationConfigurerAdapter(SecurityProperties securityProperties, List<SecurityPrerequisite> dependencies)
@Bean public AuthenticationManagerConfiguration.AuthenticationManagerConfigurationListener authenticationManagerConfigurationListener()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.