Search in sources :

Example 1 with AuthFilterConfigurer

use of com.evolveum.midpoint.authentication.impl.filter.configurers.AuthFilterConfigurer in project midpoint by Evolveum.

the class MidpointWebSecurityConfigurerAdapter method configure.

@Override
protected void configure(HttpSecurity http) throws Exception {
    http.setSharedObject(AuthenticationTrustResolverImpl.class, new MidpointAuthenticationTrustResolverImpl());
    http.addFilter(new WebAsyncManagerIntegrationFilter()).sessionManagement().and().securityContext();
    http.apply(new AuthFilterConfigurer());
    createSessionContextRepository(http);
    http.sessionManagement().maximumSessions(-1).sessionRegistry(sessionRegistry).maxSessionsPreventsLogin(true);
}
Also used : MidpointAuthenticationTrustResolverImpl(com.evolveum.midpoint.authentication.impl.MidpointAuthenticationTrustResolverImpl) WebAsyncManagerIntegrationFilter(org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter) AuthFilterConfigurer(com.evolveum.midpoint.authentication.impl.filter.configurers.AuthFilterConfigurer)

Aggregations

MidpointAuthenticationTrustResolverImpl (com.evolveum.midpoint.authentication.impl.MidpointAuthenticationTrustResolverImpl)1 AuthFilterConfigurer (com.evolveum.midpoint.authentication.impl.filter.configurers.AuthFilterConfigurer)1 WebAsyncManagerIntegrationFilter (org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter)1