Search in sources :

Example 1 with OpenIdAuthenticationFilter

use of alfio.config.authentication.support.OpenIdAuthenticationFilter in project alf.io by alfio-event.

the class OpenIdAdminWebSecurity method addAdditionalFilters.

@Override
protected void addAdditionalFilters(HttpSecurity http) throws Exception {
    var callbackLoginFilter = new OpenIdCallbackLoginFilter(adminOpenIdAuthenticationManager, new AntPathRequestMatcher("/callback", "GET"), authenticationManager());
    http.addFilterBefore(callbackLoginFilter, UsernamePasswordAuthenticationFilter.class);
    log.trace("adding openid filter");
    http.addFilterAfter(new OpenIdAuthenticationFilter("/authentication", adminOpenIdAuthenticationManager, "/", false), OpenIdCallbackLoginFilter.class);
}
Also used : OpenIdCallbackLoginFilter(alfio.config.authentication.support.OpenIdCallbackLoginFilter) OpenIdAuthenticationFilter(alfio.config.authentication.support.OpenIdAuthenticationFilter) AntPathRequestMatcher(org.springframework.security.web.util.matcher.AntPathRequestMatcher)

Aggregations

OpenIdAuthenticationFilter (alfio.config.authentication.support.OpenIdAuthenticationFilter)1 OpenIdCallbackLoginFilter (alfio.config.authentication.support.OpenIdCallbackLoginFilter)1 AntPathRequestMatcher (org.springframework.security.web.util.matcher.AntPathRequestMatcher)1