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"