From f99d4cffac6aa1cc70e0a439d5705f26b36df382 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 19 Nov 2024 10:08:36 +0100 Subject: [PATCH] jupyter-health: update oauth config for new deployment --- .../clusters/jupyter-health/staging.values.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config/clusters/jupyter-health/staging.values.yaml b/config/clusters/jupyter-health/staging.values.yaml index 99778ba57..2567ab3da 100644 --- a/config/clusters/jupyter-health/staging.values.yaml +++ b/config/clusters/jupyter-health/staging.values.yaml @@ -18,16 +18,16 @@ jupyterhub: GenericOAuthenticator: client_id: Ima7rx8D6eko0PzlU1jK28WBUT2ZweZj7mqVG2wm oauth_callback_url: https://staging.jupyter-health.2i2c.cloud/hub/oauth_callback - authorize_url: https://chcs.fly.dev/o/authorize/ - token_url: https://chcs.fly.dev/o/token/ - userdata_url: https://chcs.fly.dev/api/v1/users/profile + authorize_url: https://jhe.fly.dev/o/authorize/ + token_url: https://jhe.fly.dev/o/token/ + userdata_url: https://jhe.fly.dev/api/v1/users/profile username_claim: email - login_service: CHCS + login_service: JupyterHealth Exchange scope: - openid enable_auth_state: true admin_users: - - benjaminrk@simula.no + - benjaminrk@gmail.com - yuvipanda@2i2c.org allowed_users: # TODO: implement allow based on organization membership, @@ -42,9 +42,9 @@ jupyterhub: if not auth_state: spawner.log.warning(f"Missing auth state for user {spawner.user.name}") return - spawner.environment["CHCS_TOKEN"] = auth_state["access_token"] - spawner.environment["CHCS_REFRESH_TOKEN"] = auth_state["refresh_token"] - spawner.environment["CHCS_CLIENT_ID"] = "Ima7rx8D6eko0PzlU1jK28WBUT2ZweZj7mqVG2wm" + spawner.environment["JHE_TOKEN"] = auth_state["access_token"] + spawner.environment["JHE_REFRESH_TOKEN"] = auth_state["refresh_token"] + spawner.environment["JHE_CLIENT_ID"] = "Ima7rx8D6eko0PzlU1jK28WBUT2ZweZj7mqVG2wm" c.Spawner.auth_state_hook = auth_state_env singleuser: