Skip to content

Commit

Permalink
Merge pull request #167 from kbss-cvut/fix/165-refactor-backend-confi…
Browse files Browse the repository at this point in the history
…guration

Change keys for properties allowedOrigins and RoleClaim
  • Loading branch information
blcham authored Nov 7, 2024
2 parents 758c5b0 + 00ba4e0 commit bea01f4
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/analysis/util/ConfigParam.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ public enum ConfigParam {

APP_CONTEXT("appContext"),

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/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ persistence:

security:
provider: internal
cors.allowedOrigins: "http://localhost:5173,http://localhost:4173"
oidc.RoleClaim: realm_access.roles

appContext: http://localhost:5173
oidc.RoleClaim: realm_access.roles
cors.allowedOrigins: "http://localhost:5173,http://localhost:4173"

logging:
pattern:
Expand Down

0 comments on commit bea01f4

Please sign in to comment.