From 34bee42f464c8482f2d6de3a13c1745c0a76d46f Mon Sep 17 00:00:00 2001 From: Thomas Schreiber Date: Mon, 11 Nov 2024 10:30:38 +0100 Subject: [PATCH] #1732 update springdoc --- pom.xml | 4 ++-- src/main/java/at/rtr/rmbt/config/WebMvcConfiguration.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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);