diff --git a/config/clusters/jupyter-health/common.values.yaml b/config/clusters/jupyter-health/common.values.yaml index f720e9c74..37bb4e8fd 100644 --- a/config/clusters/jupyter-health/common.values.yaml +++ b/config/clusters/jupyter-health/common.values.yaml @@ -105,6 +105,18 @@ jupyterhub: spawner.environment["JHE_CLIENT_ID"] = "Ima7rx8D6eko0PzlU1jK28WBUT2ZweZj7mqVG2wm" c.Spawner.auth_state_hook = auth_state_env + + skip_refresh_for_test_user.py: | + def refresh_user_hook(authenticator, user, auth_state): + if user.name == "deployment-service-check": + # if this is the user, + # refresh_user doesn't make sense + # consider it always fresh + return True + # for all other users, refresh as usual + return None + + c.OAuthenticator.refresh_user_hook = refresh_user_hook singleuser: defaultUrl: /lab extraEnv: