Skip to content

Commit

Permalink
jupyter-health: update oauth config
Browse files Browse the repository at this point in the history
for new deployment
  • Loading branch information
minrk committed Nov 19, 2024
1 parent c45702a commit f99d4cf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config/clusters/jupyter-health/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- [email protected]
allowed_users:
# TODO: implement allow based on organization membership,
Expand All @@ -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:
Expand Down

0 comments on commit f99d4cf

Please sign in to comment.