1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-07-04 15:32:55 +00:00

feat: forbid access to report if not logged in

This commit is contained in:
2024-02-05 07:18:31 +01:00
parent 91fe3d1c23
commit 329be65d1a
2 changed files with 4 additions and 1 deletions

View File

@ -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 {