Skip to content
Snippets Groups Projects
Verified Commit 50750cd8 authored by Kirill Stytsenko's avatar Kirill Stytsenko
Browse files

Enable Swagger UI

in database and table services
parent fb52344c
No related branches found
No related tags found
1 merge request!81New stable release
...@@ -58,6 +58,16 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -58,6 +58,16 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http.authorizeRequests() http.authorizeRequests()
/* our public endpoints */ /* our public endpoints */
.antMatchers(HttpMethod.GET, "/api/container/**/database/**").permitAll() .antMatchers(HttpMethod.GET, "/api/container/**/database/**").permitAll()
.antMatchers("/v2/api-docs",
"/configuration/ui",
"/swagger-resources",
"/configuration/security",
"/swagger-ui.html",
"/webjars/**",
"/swagger-resources/configuration/ui",
"/swagger-ui.html",
"/v3/api-docs/**",
"/swagger-ui/**").permitAll()
/* our private endpoints */ /* our private endpoints */
.anyRequest().authenticated(); .anyRequest().authenticated();
/* add JWT token filter */ /* add JWT token filter */
......
...@@ -58,6 +58,16 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -58,6 +58,16 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http.authorizeRequests() http.authorizeRequests()
/* our public endpoints */ /* our public endpoints */
.antMatchers(HttpMethod.GET, "/api/container/**/database/**/table/**").permitAll() .antMatchers(HttpMethod.GET, "/api/container/**/database/**/table/**").permitAll()
.antMatchers("/v2/api-docs",
"/configuration/ui",
"/swagger-resources",
"/configuration/security",
"/swagger-ui.html",
"/webjars/**",
"/swagger-resources/configuration/ui",
"/swagger-ui.html",
"/v3/api-docs/**",
"/swagger-ui/**").permitAll()
/* our private endpoints */ /* our private endpoints */
.anyRequest().authenticated(); .anyRequest().authenticated();
/* add JWT token filter */ /* add JWT token filter */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment