diff --git a/src/main/kotlin/dev/dnpm/etl/processor/config/AppSecurityConfiguration.kt b/src/main/kotlin/dev/dnpm/etl/processor/config/AppSecurityConfiguration.kt index 750ccbc..6017aab 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/config/AppSecurityConfiguration.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/config/AppSecurityConfiguration.kt @@ -82,6 +82,7 @@ class AppSecurityConfiguration( authorizeRequests { authorize("/configs/**", hasRole("ADMIN")) authorize("/mtbfile/**", hasAnyRole("MTBFILE")) + authorize("/report/**", fullyAuthenticated) authorize(anyRequest, permitAll) } httpBasic { @@ -105,6 +106,7 @@ class AppSecurityConfiguration( authorizeRequests { authorize("/configs/**", hasRole("ADMIN")) authorize("/mtbfile/**", hasAnyRole("MTBFILE")) + authorize("/report/**", hasRole("ADMIN")) authorize(anyRequest, permitAll) } httpBasic { diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index c8b0ea5..3951f66 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -53,7 +53,8 @@