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