From 4bc966b8b1f0b7a045955f85d2ce50952e8e96e4 Mon Sep 17 00:00:00 2001 From: Miroslav Blasko Date: Thu, 7 Nov 2024 17:22:35 +0100 Subject: [PATCH] [kbss-cvut/fta-fmea#165] Change keys for properties allowedOrigins and RoleClaim --- src/main/java/cz/cvut/kbss/study/util/ConfigParam.java | 4 ++-- src/main/resources/config.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cz/cvut/kbss/study/util/ConfigParam.java b/src/main/java/cz/cvut/kbss/study/util/ConfigParam.java index 0ee9caf6..67ce9c55 100644 --- a/src/main/java/cz/cvut/kbss/study/util/ConfigParam.java +++ b/src/main/java/cz/cvut/kbss/study/util/ConfigParam.java @@ -39,9 +39,9 @@ public enum ConfigParam { E_PROFILE_UPDATE_SUBJECT("email.profileUpdateSubject"), E_PROFILE_UPDATE_CONTENT("email.profileUpdateContent"), - OIDC_ROLE_CLAIM("oidc.roleClaim"), + OIDC_ROLE_CLAIM("security.oidc.roleClaim"), - CORS_ALLOWED_ORIGINS("cors.allowedOrigins"); + CORS_ALLOWED_ORIGINS("security.cors.allowedOrigins"); private final String name; diff --git a/src/main/resources/config.properties b/src/main/resources/config.properties index ce8e8d90..673447a3 100644 --- a/src/main/resources/config.properties +++ b/src/main/resources/config.properties @@ -58,7 +58,7 @@ security.provider=internal # Claim containing user roles in the OIDC access token (applies only when 'oidc' security provider is selected). Use # dot notation for nested objects -oidc.roleClaim=realm_access.roles +security.oidc.roleClaim=realm_access.roles # Configures allowed origins for CORS (e.g. http://localhost:3000). Use a comma to separate multiple values -cors.allowedOrigins= \ No newline at end of file +security.cors.allowedOrigins= \ No newline at end of file