Switch authentication to OAuth 2 #27
@ -59,7 +59,6 @@ public class WicketConfiguration {
|
|||||||
@Order(3) // make sure it's after the API security filters
|
@Order(3) // make sure it's after the API security filters
|
||||||
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
||||||
http.authorizeHttpRequests((requests) -> requests.anyRequest().authenticated());
|
http.authorizeHttpRequests((requests) -> requests.anyRequest().authenticated());
|
||||||
http.jee(Customizer.withDefaults()); // Shibboleth integration
|
|
||||||
http.oauth2Login(Customizer.withDefaults());
|
http.oauth2Login(Customizer.withDefaults());
|
||||||
http.csrf(csrf -> csrf.disable()); // Wicket has its own CSRF protection
|
http.csrf(csrf -> csrf.disable()); // Wicket has its own CSRF protection
|
||||||
http.logout(logout -> logout
|
http.logout(logout -> logout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user