Added login filter to /api/authn/shibboleth

This commit is contained in:
Giuseppe Digilio
2019-10-23 12:22:05 +02:00
parent abbf3f7361
commit 705c887998

View File

@@ -109,6 +109,11 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
restAuthenticationService),
LogoutFilter.class)
//Add a filter before our shibboleth endpoints to do the authentication based on the data in the HTTP request
.addFilterBefore(new StatelessLoginFilter("/api/authn/shibboleth", authenticationManager(),
restAuthenticationService),
LogoutFilter.class)
// Add a custom Token based authentication filter based on the token previously given to the client
// before each URL
.addFilterBefore(new StatelessAuthenticationFilter(authenticationManager(), restAuthenticationService,