@Configuration
@ConfigurationProperties(prefix="punchplatform.security")
@EnableWebSecurity
public class SecurityConfiguration
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Constructor and Description |
---|
SecurityConfiguration(ApplicationConfigLdap configLdap) |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
Configure LDAP authentication if security settings are enabled
|
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
If security is enabled, map incoming requests to the proper route controllers when authentication is successful
|
authenticationManager, authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
public SecurityConfiguration(ApplicationConfigLdap configLdap)
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
http
- http security layerException
- .public void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
auth
- authentication builder used to set ldap propertiesException
- .Copyright © 2023. All rights reserved.