From 7ff657ba0a2c6f03fdb3d746823c53fba7033b06 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 28 Oct 2025 15:58:15 +0100 Subject: [PATCH] Added OAuth2 API Tester tool and improved CORS/OAuth support: - Introduced `OAuth2 API Tester` (HTML+JS) in `/tools`. - Updated security configuration: - Added comprehensive CORS configurations for OAuth endpoints. - Enhanced CSRF handling to exclude `/oauth2/token`. - Adjusted role handling to ensure case-insensitivity. - Fixed `RIGHT-MANAGEMENT` role in `UserController`. - Replaced logo asset in frontend. --- src/frontend/assets/logo.svg | 31 +- .../src/components/layout/TheHeader.vue | 7 +- .../java/de/avatic/lcc/config/CorsConfig.java | 15 +- .../de/avatic/lcc/config/SecurityConfig.java | 63 +- .../lcc/config/SelfIssuedJwtFilter.java | 2 +- .../lcc/controller/users/UserController.java | 6 +- tools/oauth2-tester/index.html | 561 ++++++++++++++++++ tools/oauth2-tester/run.bat | 1 + 8 files changed, 662 insertions(+), 24 deletions(-) create mode 100644 tools/oauth2-tester/index.html create mode 100644 tools/oauth2-tester/run.bat diff --git a/src/frontend/assets/logo.svg b/src/frontend/assets/logo.svg index 0a6af8c..279bc8a 100644 --- a/src/frontend/assets/logo.svg +++ b/src/frontend/assets/logo.svg @@ -1,18 +1,17 @@ - - KION_Group_logo - + + + + + + + \ No newline at end of file diff --git a/src/frontend/src/components/layout/TheHeader.vue b/src/frontend/src/components/layout/TheHeader.vue index 6fdb243..c14afbe 100644 --- a/src/frontend/src/components/layout/TheHeader.vue +++ b/src/frontend/src/components/layout/TheHeader.vue @@ -1,6 +1,6 @@ +