From 7caf09d0ab816a75d48d0838907da093b14a24d4 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 6 Dec 2024 12:29:15 +0100 Subject: [PATCH] jupyter-health: remove references to `self` these are hooks, not methods --- config/clusters/jupyter-health/common.values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/clusters/jupyter-health/common.values.yaml b/config/clusters/jupyter-health/common.values.yaml index 3b680361d..50cd9f49d 100644 --- a/config/clusters/jupyter-health/common.values.yaml +++ b/config/clusters/jupyter-health/common.values.yaml @@ -85,7 +85,7 @@ jupyterhub: if not auth_state: return auth_state access_token = auth_state["access_token"] - url = urlparse(self.authorize_url) + url = urlparse(authenticator.authorize_url) org_url = f"{url.scheme}://{url.netloc}/api/v1/users/organizations" organizations = await authenticator.httpfetch( org_url, @@ -104,7 +104,6 @@ jupyterhub: spawner.log.warning(f"Missing auth state for user {spawner.user.name}") return spawner.environment["JHE_TOKEN"] = auth_state["access_token"] - spawner.environment["JHE_CLIENT_ID"] = self.client_id c.Spawner.auth_state_hook = auth_state_env @@ -125,6 +124,7 @@ jupyterhub: GH_SCOPED_CREDS_CLIENT_ID: Iv23lilZjNoav2oWKdPJ GH_SCOPED_CREDS_APP_URL: https://github.com/apps/jupyter-health-demostration-hub JHE_URL: https://jhe.fly.dev + JHE_CLIENT_ID: Ima7rx8D6eko0PzlU1jK28WBUT2ZweZj7mqVG2wm image: name: quay.io/jupyterhealth/singleuser-premvp tag: "latest"