use of jenkins.security.AcegiSecurityExceptionFilter in project jenkins by jenkinsci.
the class SecurityRealm method commonFilters.
protected final List<Filter> commonFilters() {
// like Jenkins.ANONYMOUS:
AnonymousAuthenticationFilter apf = new AnonymousAuthenticationFilter("anonymous", "anonymous", Collections.singletonList(new SimpleGrantedAuthority("anonymous")));
ExceptionTranslationFilter etf = new ExceptionTranslationFilter(new HudsonAuthenticationEntryPoint("/" + getLoginUrl() + "?from={0}"));
etf.setAccessDeniedHandler(new AccessDeniedHandlerImpl());
UnwrapSecurityExceptionFilter usef = new UnwrapSecurityExceptionFilter();
AcegiSecurityExceptionFilter asef = new AcegiSecurityExceptionFilter();
return Arrays.asList(apf, etf, usef, asef);
}
Aggregations