Skip to content

Commit

Permalink
[kbss-cvut/fta-fmea#165] Change keys for properties allowedOrigins an…
Browse files Browse the repository at this point in the history
…d RoleClaim
  • Loading branch information
blcham committed Nov 7, 2024
1 parent 02c59ce commit 4bc966b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cz/cvut/kbss/study/util/ConfigParam.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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=
security.cors.allowedOrigins=

0 comments on commit 4bc966b

Please sign in to comment.