From dfa2d8c1919e55f5b09b440c93a8b1b62b577849 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 20 Mar 2025 16:08:21 +0100 Subject: [PATCH] fix: Fix realm name --- .../timetable/configuration/OpenApiConfiguration.kt | 4 ++-- module-server/src/main/resources/application.yaml | 2 +- module-server/src/main/resources/policy-enforcer.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/configuration/OpenApiConfiguration.kt b/module-server/src/main/kotlin/de/twomartens/timetable/configuration/OpenApiConfiguration.kt index 4e43b38..39d143c 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/configuration/OpenApiConfiguration.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/configuration/OpenApiConfiguration.kt @@ -16,8 +16,8 @@ import org.springframework.context.annotation.Configuration type = SecuritySchemeType.OAUTH2, flows = OAuthFlows( implicit = OAuthFlow( - authorizationUrl = "https://id.2martens.de/realms/2martens/protocol/openid-connect/auth", - tokenUrl = "https://id.2martens.de/realms/2martens/protocol/openid-connect/token" + authorizationUrl = "https://id.2martens.de/realms/twomartens/protocol/openid-connect/auth", + tokenUrl = "https://id.2martens.de/realms/twomartens/protocol/openid-connect/token" ) ) ) diff --git a/module-server/src/main/resources/application.yaml b/module-server/src/main/resources/application.yaml index c81264d..a564c7a 100644 --- a/module-server/src/main/resources/application.yaml +++ b/module-server/src/main/resources/application.yaml @@ -37,7 +37,7 @@ spring: oauth2: resourceserver: jwt: - jwk-set-uri: ${KEYCLOAK_URL:https://id.2martens.de}/realms/${KEYCLOAK_REALM:2martens}/protocol/openid-connect/certs + jwk-set-uri: ${KEYCLOAK_URL:https://id.2martens.de}/realms/${KEYCLOAK_REALM:twomartens}/protocol/openid-connect/certs application: name: timetable diff --git a/module-server/src/main/resources/policy-enforcer.json b/module-server/src/main/resources/policy-enforcer.json index e5f9140..12420d4 100644 --- a/module-server/src/main/resources/policy-enforcer.json +++ b/module-server/src/main/resources/policy-enforcer.json @@ -1,5 +1,5 @@ { - "realm": "2martens", + "realm": "twomartens", "auth-server-url": "https://id.2martens.de", "resource": "timetable", "http-method-as-scope": true