From cb11028c6674733e4e117287d227833ce4a71dd4 Mon Sep 17 00:00:00 2001 From: Marcel Dybek <92519157+MDybek@users.noreply.github.com> Date: Fri, 29 Nov 2024 00:09:50 +0100 Subject: [PATCH] management-service: changed allowed pages (#125) --- client/src/components/IncidentList/IncidentList.scss | 2 +- .../src/components/OverlayComponent/OverlayComponent.scss | 2 +- client/src/components/PageTemplate/PageTemplate.scss | 2 +- client/src/components/Table/Table.scss | 4 ++-- .../Incident/components/LogsContainer/LogsContainer.scss | 2 +- client/src/pages/Notification/Notification.scss | 2 +- .../java/pl/pwr/zpi/security/config/SecurityConfig.java | 8 +++----- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/client/src/components/IncidentList/IncidentList.scss b/client/src/components/IncidentList/IncidentList.scss index 1a52b641..7b91472b 100644 --- a/client/src/components/IncidentList/IncidentList.scss +++ b/client/src/components/IncidentList/IncidentList.scss @@ -3,7 +3,7 @@ .incident-list { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; - overflow-x: scroll; + overflow-x: auto; width: 100%; column-gap: 1rem; diff --git a/client/src/components/OverlayComponent/OverlayComponent.scss b/client/src/components/OverlayComponent/OverlayComponent.scss index 2b63e3c3..05791c8c 100644 --- a/client/src/components/OverlayComponent/OverlayComponent.scss +++ b/client/src/components/OverlayComponent/OverlayComponent.scss @@ -19,6 +19,6 @@ border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); border: 2px solid $component-border-color; - overflow-x: scroll; + overflow-x: auto; margin: 0 5px; } diff --git a/client/src/components/PageTemplate/PageTemplate.scss b/client/src/components/PageTemplate/PageTemplate.scss index 34c3d617..9f96c84c 100644 --- a/client/src/components/PageTemplate/PageTemplate.scss +++ b/client/src/components/PageTemplate/PageTemplate.scss @@ -1,7 +1,7 @@ @import '@/variables'; .page-template { - overflow-y: scroll; + overflow-y: auto; flex-grow: 1; width: 100%; padding: 1rem; diff --git a/client/src/components/Table/Table.scss b/client/src/components/Table/Table.scss index 24c05a1e..882db4ba 100644 --- a/client/src/components/Table/Table.scss +++ b/client/src/components/Table/Table.scss @@ -5,7 +5,7 @@ grid-template-columns: repeat(100); background-color: transparent; width: 100%; - overflow-x: scroll; + overflow-x: auto; &__headers { display: grid; @@ -23,7 +23,7 @@ display: grid; grid-template-columns: subgrid; grid-column: span 100; - overflow-y: scroll; + overflow-y: auto; } &__row { diff --git a/client/src/pages/Incident/components/LogsContainer/LogsContainer.scss b/client/src/pages/Incident/components/LogsContainer/LogsContainer.scss index 1d910627..9b71c262 100644 --- a/client/src/pages/Incident/components/LogsContainer/LogsContainer.scss +++ b/client/src/pages/Incident/components/LogsContainer/LogsContainer.scss @@ -10,7 +10,7 @@ border-color: $component-border-color; border-width: 0.5px; max-height: 150px; - overflow-y: scroll; + overflow-y: auto; color: $navbar-text-color; white-space: pre-wrap; font-size: 1.2rem; diff --git a/client/src/pages/Notification/Notification.scss b/client/src/pages/Notification/Notification.scss index 67849f2b..6222cfd7 100644 --- a/client/src/pages/Notification/Notification.scss +++ b/client/src/pages/Notification/Notification.scss @@ -3,7 +3,7 @@ .notification { height: 100vh; width: 100%; - overflow-y: scroll; + overflow-y: auto; flex-grow: 1; padding: 20px; display: flex; diff --git a/management-service/src/main/java/pl/pwr/zpi/security/config/SecurityConfig.java b/management-service/src/main/java/pl/pwr/zpi/security/config/SecurityConfig.java index 03ae0e25..ee727dae 100644 --- a/management-service/src/main/java/pl/pwr/zpi/security/config/SecurityConfig.java +++ b/management-service/src/main/java/pl/pwr/zpi/security/config/SecurityConfig.java @@ -44,12 +44,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http, CorsConfigurat "/public/api/**", "/v3/api-docs/**", "/swagger-ui/**", - "/api/v1/auth/login", + "/api/v1/auth/**", "/login/oauth2/code/**", - "/", - "/login**", "/error" - ).permitAll(); + ).permitAll(); request.anyRequest().authenticated(); }) .oauth2Login(oauth2 -> oauth2 @@ -64,7 +62,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http, CorsConfigurat .logoutSuccessHandler(new HttpStatusReturningLogoutSuccessHandler(HttpStatus.OK))) .addFilterBefore(new OauthAuthenticator(authorizedClientService), AuthorizationFilter.class) .exceptionHandling(exception -> - exception.accessDeniedHandler(accessDeniedHandler()) + exception.accessDeniedHandler(accessDeniedHandler()) ); return http.build(); }