From 9b2a7efe7001c004e4d617afbc63e7ae3ee4ce88 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 8 Oct 2024 00:39:16 +0200 Subject: [PATCH] [merge on 08.10] Upstream KeyCloak changes by campusonline (#1548) Umbauarbeiten KeyCloak campusonline Due to changes upstream, this needs to be edited on 08.10.24 between 7 AM and 8 AM --- server/src/calendar/connectum.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/calendar/connectum.rs b/server/src/calendar/connectum.rs index 39ca8dc6b..b121f424c 100644 --- a/server/src/calendar/connectum.rs +++ b/server/src/calendar/connectum.rs @@ -176,9 +176,9 @@ impl APIRequestor { anyhow::bail!("environment variable CONNECTUM_OAUTH_CLIENT_ID is present, but empty. It is necessary to use this endpoint") } - // for urls see https://campus.tum.de/tumonline/co/public/sec/auth/realms/CAMPUSonline/.well-known/openid-configuration - let auth_url = Url::parse("https://campus.tum.de/tumonline/co/public/sec/auth/realms/CAMPUSonline/protocol/openid-connect/auth")?; - let token_url = Url::parse("https://campus.tum.de/tumonline/co/public/sec/auth/realms/CAMPUSonline/protocol/openid-connect/token")?; + // for urls see https://campus.tum.de/tumonline/co/public/sec/auth/realms/CAMPUSonline_SP/.well-known/openid-configuration + let auth_url = Url::parse("https://campus.tum.de/tumonline/co/public/sec/auth/realms/CAMPUSonline_SP/protocol/openid-connect/auth")?; + let token_url = Url::parse("https://campus.tum.de/tumonline/co/public/sec/auth/realms/CAMPUSonline_SP/protocol/openid-connect/token")?; let token = BasicClient::new( ClientId::new(client_id),