Skip to content
Snippets Groups Projects
Commit 647e482a authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files
parent 831cab83
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<properties> <properties>
<org.springframework-version>4.1.6.RELEASE</org.springframework-version> <org.springframework-version>4.1.6.RELEASE</org.springframework-version>
<org.springframework.security-version>3.2.7.RELEASE</org.springframework.security-version> <org.springframework.security-version>4.0.1.RELEASE</org.springframework.security-version>
<org.springframework.integration-mail-version>4.1.3.RELEASE</org.springframework.integration-mail-version> <org.springframework.integration-mail-version>4.1.3.RELEASE</org.springframework.integration-mail-version>
<com.fasterxml.jackson-version>2.5.3</com.fasterxml.jackson-version> <com.fasterxml.jackson-version>2.5.3</com.fasterxml.jackson-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
......
...@@ -117,10 +117,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter implements Serv ...@@ -117,10 +117,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter implements Serv
http.exceptionHandling().authenticationEntryPoint(restAuthenticationEntryPoint()); http.exceptionHandling().authenticationEntryPoint(restAuthenticationEntryPoint());
http.csrf().disable(); http.csrf().disable();
http.headers() http.headers()
.cacheControl()
.contentTypeOptions()
.frameOptions()
.xssProtection()
.addHeaderWriter(new HstsHeaderWriter(false)); .addHeaderWriter(new HstsHeaderWriter(false));
if (casEnabled) { if (casEnabled) {
...@@ -295,7 +291,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter implements Serv ...@@ -295,7 +291,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter implements Serv
@Bean @Bean
public ServiceProperties casServiceProperties() { public ServiceProperties casServiceProperties() {
ServiceProperties properties = new ServiceProperties(); ServiceProperties properties = new ServiceProperties();
properties.setService(rootUrl + servletContext.getContextPath() + "/j_spring_cas_security_check"); properties.setService(rootUrl + servletContext.getContextPath() + "/login/cas");
properties.setSendRenew(false); properties.setSendRenew(false);
return properties; return properties;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment