Class SecurityConfiguration
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- com.netgrif.application.engine.configuration.AbstractSecurityConfiguration
-
- com.netgrif.application.engine.configuration.SecurityConfiguration
-
- 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>
@Configuration @Controller @EnableWebSecurity @Order(2147483642) @ConditionalOnExpression("!${nae.server.security.static.enabled} && !${nae.ldap.enabled}") public class SecurityConfiguration extends AbstractSecurityConfiguration
-
-
Field Summary
-
Fields inherited from class com.netgrif.application.engine.configuration.AbstractSecurityConfiguration
serverAuthProperties, sessionUtilsProperties
-
-
Constructor Summary
Constructors Constructor Description SecurityConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.authentication.ProviderManager
authenticationManager()
protected IAfterRegistrationAuthService
authenticationService()
protected void
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
org.springframework.web.cors.CorsConfigurationSource
corsConfigurationSource()
protected org.springframework.core.env.Environment
getEnvironment()
protected java.lang.String[]
getServerPatterns()
protected java.lang.String[]
getStaticPatterns()
org.springframework.session.web.http.HttpSessionIdResolver
httpSessionIdResolver()
protected boolean
isCsrfEnabled()
protected boolean
isOpenRegistration()
org.springframework.web.context.request.RequestContextListener
requestContextListener()
-
Methods inherited from class com.netgrif.application.engine.configuration.AbstractSecurityConfiguration
configureFilters, configureSession, getPatterns, setCsrf
-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
Method Detail
-
httpSessionIdResolver
@Bean public org.springframework.session.web.http.HttpSessionIdResolver httpSessionIdResolver()
-
requestContextListener
@Bean public org.springframework.web.context.request.RequestContextListener requestContextListener()
-
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
-
authenticationService
@Bean protected IAfterRegistrationAuthService authenticationService() throws java.lang.Exception
- 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
-
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
-
-