From 8c8370f716f152426ea03e877ee6f5de21b16551 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Tue, 24 Sep 2024 09:09:41 +0000
Subject: [PATCH] Fix JWT wrapper deployment on staging and producion

---
 cesnet-central/deployments/fullhub.yaml | 2 +-
 common/deployments/hub-production.yaml  | 2 +-
 common/deployments/hub-staging.yaml     | 2 +-
 testing/deployments/hub.yaml            | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml
index 1c1daf6..e8fb383 100644
--- a/cesnet-central/deployments/fullhub.yaml
+++ b/cesnet-central/deployments/fullhub.yaml
@@ -192,7 +192,7 @@ hub:
       client_id: "{{ secret['client_id'] }}"
       client_secret: "{{ secret['client_secret'] }}"
       oauth_callback_url: "https://{{ notebooks_hostname }}/hub/oauth_callback"
-      openid_configuration_url: "https://proxy.testing.eosc-federation.eu/.well-known/openid-configuration"
+      openid_configuration_url: "https://{{ secret['checkin_host'] }}/.well-known/openid-configuration"
       scope: ["openid", "profile", "email", "offline_access", "entitlements"]
       username_claim: "sub"
       extra_authorize_params:
diff --git a/common/deployments/hub-production.yaml b/common/deployments/hub-production.yaml
index 3fc838e..9c0bb35 100644
--- a/common/deployments/hub-production.yaml
+++ b/common/deployments/hub-production.yaml
@@ -173,7 +173,7 @@ hub:
       client_id: "{{ secret['client_id'] }}"
       client_secret: "{{ secret['client_secret'] }}"
       oauth_callback_url: "https://{{ notebooks_hostname }}/hub/oauth_callback"
-      openid_configuration_url: "https://proxy.testing.eosc-federation.eu/.well-known/openid-configuration"
+      openid_configuration_url: "https://{{ secret['checkin_host'] }}/.well-known/openid-configuration"
       scope: ["openid", "profile", "email", "offline_access", "entitlements"]
       username_claim: "sub"
       extra_authorize_params:
diff --git a/common/deployments/hub-staging.yaml b/common/deployments/hub-staging.yaml
index 24e83a0..e1e86bd 100644
--- a/common/deployments/hub-staging.yaml
+++ b/common/deployments/hub-staging.yaml
@@ -173,7 +173,7 @@ hub:
       client_id: "{{ secret['client_id'] }}"
       client_secret: "{{ secret['client_secret'] }}"
       oauth_callback_url: "https://{{ notebooks_hostname }}/hub/oauth_callback"
-      openid_configuration_url: "https://proxy.testing.eosc-federation.eu/.well-known/openid-configuration"
+      openid_configuration_url: "https://{{ secret['checkin_host'] }}/.well-known/openid-configuration"
       scope: ["openid", "profile", "email", "offline_access", "entitlements"]
       username_claim: "sub"
       extra_authorize_params:
diff --git a/testing/deployments/hub.yaml b/testing/deployments/hub.yaml
index 7022425..12c6f17 100644
--- a/testing/deployments/hub.yaml
+++ b/testing/deployments/hub.yaml
@@ -174,7 +174,7 @@ hub:
       client_id: "{{ secret['client_id'] }}"
       client_secret: "{{ secret['client_secret'] }}"
       oauth_callback_url: "https://{{ notebooks_hostname }}/hub/oauth_callback"
-      openid_configuration_url: "https://proxy.testing.eosc-federation.eu/.well-known/openid-configuration"
+      openid_configuration_url: "https://{{ secret['checkin_host'] }}/.well-known/openid-configuration"
       scope: ["openid", "profile", "email", "offline_access", "entitlements"]
       username_claim: "sub"
       extra_authorize_params:
-- 
GitLab