From af0952a034c28e53f9fc194f9ea56225347ec9b5 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 17 Nov 2025 14:06:02 +0100 Subject: [PATCH] update group name length --- src/main/java/de/avatic/lcc/config/SecurityConfig.java | 10 +++++----- .../de/avatic/lcc/service/apps/JwtTokenService.java | 2 +- src/main/resources/application.properties | 5 ++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/de/avatic/lcc/config/SecurityConfig.java b/src/main/java/de/avatic/lcc/config/SecurityConfig.java index 00cdc1a..eff34dc 100644 --- a/src/main/java/de/avatic/lcc/config/SecurityConfig.java +++ b/src/main/java/de/avatic/lcc/config/SecurityConfig.java @@ -259,11 +259,11 @@ public class SecurityConfig { Integer userId = null; // Debug: Print all claims -// System.out.println("=== ID Token Claims ==="); -// oidcUser.getIdToken().getClaims().forEach((key, value) -> -// System.out.println(key + ": " + value) -// ); -// System.out.println("======================"); + log.debug("=== ID Token Claims ==="); + oidcUser.getIdToken().getClaims().forEach((key, value) -> + log.debug("{}: {}", key, value) + ); + log.debug("======================"); Set mappedAuthorities = new HashSet<>(oidcUser.getAuthorities()); diff --git a/src/main/java/de/avatic/lcc/service/apps/JwtTokenService.java b/src/main/java/de/avatic/lcc/service/apps/JwtTokenService.java index 2a10dd9..73323d4 100644 --- a/src/main/java/de/avatic/lcc/service/apps/JwtTokenService.java +++ b/src/main/java/de/avatic/lcc/service/apps/JwtTokenService.java @@ -19,7 +19,7 @@ public class JwtTokenService { private final Key signingKey; private final String baseUrl; - public JwtTokenService(@Value("${jwt.secret}") String secret, @Value("${lcc.base.url}") String baseUrl) { + public JwtTokenService(@Value("${jwt.secret}") String secret, @Value("${jwt.issuer}") String baseUrl) { this.signingKey = Keys.hmacShaKeyFor(secret.getBytes(StandardCharsets.UTF_8)); this.baseUrl = baseUrl; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index dfce181..8477cc5 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -29,4 +29,7 @@ lcc.allowed_oauth_token_cors=* lcc.auth.identify.by=workday lcc.auth.claim.workday=employeeid lcc.auth.claim.email=preferred_username -lcc.auth.claim.ignore.workday=false \ No newline at end of file +lcc.auth.claim.ignore.workday=false + +# Bulk Import +lcc.bulk.sheet_password=secretSheet?! \ No newline at end of file