@Configuration @Conditional(value={OnDefaultBootUserAuthenticationEnabled.class,OnSecurityEnabledAndOAuth2Disabled.class}) public class DefaultBootUserAuthenticationConfiguration extends org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter
FileAuthenticationConfiguration
nor LdapAuthenticationConfiguration
are
loaded. In that case the Spring Boot default user is used and if that user was not
explicitly customized by the user, the user will get full access to the application,
assigning her all applicable roles.Constructor and Description |
---|
DefaultBootUserAuthenticationConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
init(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
Initializes the
AuthenticationManagerBuilder . |
public DefaultBootUserAuthenticationConfiguration()
public void init(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
AuthenticationManagerBuilder
. Creates an
InMemoryUserDetailsManager
with the provided
AuthenticationManagerBuilder
. SecurityProperties.getUser()
must
contain 1 user.init
in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder>
init
in class org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter
auth
- the authentication manager builderException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.