Search in sources :

Example 1 with AuthenticationCredentialsLocalBinderClearingFilter

use of org.apereo.cas.web.support.AuthenticationCredentialsLocalBinderClearingFilter in project cas by apereo.

the class CasFiltersConfiguration method currentCredentialsAndAuthenticationClearingFilter.

@Bean
public FilterRegistrationBean currentCredentialsAndAuthenticationClearingFilter() {
    final FilterRegistrationBean bean = new FilterRegistrationBean();
    bean.setFilter(new AuthenticationCredentialsLocalBinderClearingFilter());
    bean.setUrlPatterns(Collections.singleton("/*"));
    bean.setName("currentCredentialsAndAuthenticationClearingFilter");
    bean.setAsyncSupported(true);
    return bean;
}
Also used : AuthenticationCredentialsLocalBinderClearingFilter(org.apereo.cas.web.support.AuthenticationCredentialsLocalBinderClearingFilter) FilterRegistrationBean(org.springframework.boot.web.servlet.FilterRegistrationBean) FilterRegistrationBean(org.springframework.boot.web.servlet.FilterRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

AuthenticationCredentialsLocalBinderClearingFilter (org.apereo.cas.web.support.AuthenticationCredentialsLocalBinderClearingFilter)1 FilterRegistrationBean (org.springframework.boot.web.servlet.FilterRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1