Class NaeSecurityConfiguration
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- com.netgrif.application.engine.configuration.AbstractSecurityConfiguration
-
- com.netgrif.application.engine.configuration.NaeSecurityConfiguration
-
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.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>
@Controller @Configuration @EnableWebSecurity @Order(-100) public class NaeSecurityConfiguration extends AbstractSecurityConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected IImpersonationService
impersonationService
protected NaeLdapProperties
ldapProperties
-
Fields inherited from class com.netgrif.application.engine.configuration.AbstractSecurityConfiguration
serverAuthProperties, sessionUtilsProperties
-
-
Constructor Summary
Constructors Constructor Description NaeSecurityConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.authentication.ProviderManager
authenticationManager()
protected void
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
org.springframework.web.cors.CorsConfigurationSource
corsConfigurationSource()
protected PublicAuthenticationFilter
createPublicAuthenticationFilter()
protected org.springframework.core.env.Environment
getEnvironment()
protected SecurityConfigProperties
getSecurityConfigProperties()
protected java.lang.String[]
getServerPatterns()
protected java.lang.String[]
getStaticPatterns()
org.springframework.session.web.http.HttpSessionIdResolver
httpSessionIdResolver()
protected boolean
isCorsEnabled()
protected boolean
isCsrfEnabled()
protected boolean
isOpenRegistration()
-
Methods inherited from class com.netgrif.application.engine.configuration.AbstractSecurityConfiguration
configure, configureFilters, configureSession, corsEnable, existConfigurationHeaders, getPatterns, setContentSecurityPolicy, setCsrf, setHeaders, setStrictTransportSecurity, setXFrameOptions, setXXSSProtection
-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
Field Detail
-
ldapProperties
@Autowired protected NaeLdapProperties ldapProperties
-
impersonationService
@Autowired protected IImpersonationService impersonationService
-
-
Method Detail
-
httpSessionIdResolver
@Bean public org.springframework.session.web.http.HttpSessionIdResolver httpSessionIdResolver()
-
corsConfigurationSource
@Bean public org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
java.lang.Exception
-
authenticationManager
protected org.springframework.security.authentication.ProviderManager authenticationManager() throws java.lang.Exception
- Overrides:
authenticationManager
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
java.lang.Exception
-
isOpenRegistration
protected boolean isOpenRegistration()
- Specified by:
isOpenRegistration
in classAbstractSecurityConfiguration
-
isCsrfEnabled
protected boolean isCsrfEnabled()
- Specified by:
isCsrfEnabled
in classAbstractSecurityConfiguration
-
isCorsEnabled
protected boolean isCorsEnabled()
- Specified by:
isCorsEnabled
in classAbstractSecurityConfiguration
-
getStaticPatterns
protected java.lang.String[] getStaticPatterns()
- Specified by:
getStaticPatterns
in classAbstractSecurityConfiguration
-
getServerPatterns
protected java.lang.String[] getServerPatterns()
- Specified by:
getServerPatterns
in classAbstractSecurityConfiguration
-
getEnvironment
protected org.springframework.core.env.Environment getEnvironment()
- Specified by:
getEnvironment
in classAbstractSecurityConfiguration
-
getSecurityConfigProperties
protected SecurityConfigProperties getSecurityConfigProperties()
- Specified by:
getSecurityConfigProperties
in classAbstractSecurityConfiguration
-
createPublicAuthenticationFilter
protected PublicAuthenticationFilter createPublicAuthenticationFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-