diff --git a/pom.xml b/pom.xml index feaeb3f..3a92422 100644 --- a/pom.xml +++ b/pom.xml @@ -34,8 +34,8 @@ org.springdoc - springdoc-openapi-ui - 1.6.8 + springdoc-openapi-starter-webmvc-ui + 2.6.0 org.springframework.boot diff --git a/src/main/java/at/rtr/rmbt/config/WebMvcConfiguration.java b/src/main/java/at/rtr/rmbt/config/WebMvcConfiguration.java index dd69737..fc0dbac 100644 --- a/src/main/java/at/rtr/rmbt/config/WebMvcConfiguration.java +++ b/src/main/java/at/rtr/rmbt/config/WebMvcConfiguration.java @@ -58,7 +58,8 @@ public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Excepti authorize.requestMatchers(IP, REQUEST_DATA_COLLECTOR, TEST_RESULT_DETAIL, MEASUREMENT_QOS_REQUEST, SIGNAL_REQUEST, SIGNAL_RESULT, NEWS_URL, REGISTRATION_URL, RESULT_QOS_URL, RESULT_URL, SETTINGS_URL, PROVIDERS, TEST_RESULT, HISTORY, SYNC, MEASUREMENT_QOS_RESULT, VERSION, RESULT_UPDATE, - QOS_BY_OPEN_TEST_UUID, QOS_BY_OPEN_TEST_UUID_AND_LANGUAGE, ADMIN_SET_IMPLAUSIBLE) + QOS_BY_OPEN_TEST_UUID, QOS_BY_OPEN_TEST_UUID_AND_LANGUAGE, ADMIN_SET_IMPLAUSIBLE, + "/swagger-ui/**", "/v3/api-docs/**") .permitAll(); authorize.requestMatchers(ADMIN_SIGNAL).hasAuthority("read:reports/signal"); authorize.requestMatchers(ADMIN_SIGNAL).hasAnyAuthority(clients);