mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Added login filter to /api/authn/shibboleth
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user