Skip to content

Commit

Permalink
update batch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm committed Sep 6, 2024
1 parent e459357 commit 1c8f61e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/f7t4jhub/files/jupyterhub-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ async def refresh_user(self, user, handler=None):
}

response = requests.post(self.token_url, data=params, headers=headers)
self.log.debug(f"[refresh_user] Request to KeyCloak: {response}")
token_response = response.json()

auth_state['token_response'].update(token_response)
Expand Down Expand Up @@ -154,6 +155,9 @@ async def refresh_user(self, user, handler=None):
export JUPYTERHUB_API_URL="http://{{ .Values.config.commonName }}/hub/api"
export JUPYTERHUB_ACTIVITY_URL="http://{{ .Values.config.commonName }}/hub/api/users/${USER}/activity"
export JUPYTERHUB_OAUTH_ACCESS_SCOPES=$(echo $JUPYTERHUB_OAUTH_ACCESS_SCOPES | base64 --decode)
export JUPYTERHUB_OAUTH_SCOPES=$(echo $JUPYTERHUB_OAUTH_SCOPES | base64 --decode)
export JUPYTERHUB_CRYPT_KEY=$(openssl rand -hex 32)
set -euo pipefail
Expand Down
3 changes: 3 additions & 0 deletions firecrestspawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ class SlurmSpawner(FirecRESTSpawnerRegexStates):
set -euo pipefail
export JUPYTERHUB_OAUTH_ACCESS_SCOPES=$(echo $JUPYTERHUB_OAUTH_ACCESS_SCOPES | base64 --decode)
export JUPYTERHUB_OAUTH_SCOPES=$(echo $JUPYTERHUB_OAUTH_SCOPES | base64 --decode)
trap 'echo SIGTERM received' TERM
{{prologue}}
which jupyterhub-singleuser
Expand Down

0 comments on commit 1c8f61e

Please sign in to comment.