Search in sources :

Example 1 with JaasHttpCallbackHandlerFilter

use of com.thinkbiganalytics.auth.jaas.http.JaasHttpCallbackHandlerFilter in project kylo by Teradata.

the class DefaultWebSecurityConfigurer method configure.

@Override
@SuppressWarnings("unchecked")
protected void configure(HttpSecurity http) throws Exception {
    // @formatter:off
    http.removeConfigurer(LogoutConfigurer.class);
    http.authenticationProvider(this.authenticationProvider).csrf().disable().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and().authorizeRequests().antMatchers("/**").authenticated().and().rememberMe().rememberMeServices(rememberMeServices).and().httpBasic().and().addFilterBefore(new JaasHttpCallbackHandlerFilter(), BasicAuthenticationFilter.class).addFilterBefore(new RememberMeAuthenticationFilter(auth -> auth, rememberMeServices), BasicAuthenticationFilter.class).addFilterAfter(logoutFilter(), BasicAuthenticationFilter.class);
// @formatter:on
}
Also used : RememberMeAuthenticationFilter(org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter) BasicAuthenticationFilter(org.springframework.security.web.authentication.www.BasicAuthenticationFilter) JaasHttpCallbackHandlerFilter(com.thinkbiganalytics.auth.jaas.http.JaasHttpCallbackHandlerFilter)

Aggregations

JaasHttpCallbackHandlerFilter (com.thinkbiganalytics.auth.jaas.http.JaasHttpCallbackHandlerFilter)1 RememberMeAuthenticationFilter (org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter)1 BasicAuthenticationFilter (org.springframework.security.web.authentication.www.BasicAuthenticationFilter)1