@Configuration @ConditionalOnBean(value=org.springframework.security.config.annotation.ObjectPostProcessor.class) @ConditionalOnMissingBean(value={org.springframework.security.authentication.AuthenticationManager.class,org.springframework.security.authentication.AuthenticationProvider.class,org.springframework.security.core.userdetails.UserDetailsService.class}) @Order(value=0) public class AuthenticationManagerConfiguration extends Object
AuthenticationManager
. Can be
disabled by providing a bean of type AuthenticationManager
,
AuthenticationProvider
or UserDetailsService
. 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() |
@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()
@Bean public AuthenticationManagerConfiguration.AuthenticationManagerConfigurationListener authenticationManagerConfigurationListener()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.