Skip to content
Snippets Groups Projects
Commit 79ac7786 authored by ThanKarab's avatar ThanKarab
Browse files

Removing webjars endpoint.

parent f2a273e1
No related branches found
No related tags found
1 merge request!19Feat/186 experiment refactor
......@@ -25,12 +25,12 @@ import javax.servlet.http.HttpServletRequest;
@KeycloakConfiguration
public class SecurityConfiguration extends KeycloakWebSecurityConfigurerAdapter {
@Value("#{'${authentication.enabled}'}")
private boolean authenticationEnabled;
// Redirect to login page url
private static final String logoutRedirectURL = "/sso/login";
@Value("#{'${authentication.enabled}'}")
private boolean authenticationEnabled;
@Override
protected void configure(HttpSecurity http) throws Exception {
super.configure(http);
......@@ -38,7 +38,7 @@ public class SecurityConfiguration extends KeycloakWebSecurityConfigurerAdapter
if (authenticationEnabled) {
http.authorizeRequests()
.antMatchers(
"/sso/login", "/webjars/**",
"/sso/login",
"/v2/api-docs", "/swagger-ui/**", "/swagger-resources/**" // Swagger URLs
).permitAll()
.antMatchers("/galaxy*", "/galaxy/*").hasRole("DATA MANAGER")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment