Commit dbd3edd2 authored by Andreas Gärtner's avatar Andreas Gärtner

deactivated session creation for ilias connector.

parent 98c8737c
......@@ -14,6 +14,7 @@ import org.springframework.security.config.annotation.method.configuration.Enabl
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.ldap.DefaultSpringSecurityContextSource;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
......@@ -100,7 +101,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.exceptionHandling().defaultAuthenticationEntryPointFor(
authHandler().tokenAuthenticationEntryPoint(),
authHandler().ajaxRequestMatcher());
authHandler().ajaxRequestMatcher()).and()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
} else {
http.httpBasic();
}
......
Markdown is supported
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