From c4c4ff2f31f95958e46a645286e4f3fb298e6f13 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Sat, 13 Jan 2024 16:09:47 +0100 Subject: [PATCH] Allow authstate to be persisted --- jupyter/base/values/values.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jupyter/base/values/values.yaml b/jupyter/base/values/values.yaml index e7352b4..3ab0224 100644 --- a/jupyter/base/values/values.yaml +++ b/jupyter/base/values/values.yaml @@ -42,6 +42,7 @@ hub: print(f'Time is: {now}, token expires: {expires}') return True except KeyError: + print(f'No auth_state available for user: {user.name}') return False c.JupyterHub.authenticator_class = NextcloudOAuthenticator @@ -62,6 +63,11 @@ hub: extraEnv: NEXTCLOUD_HOST: sunet.drive.test.sunet.se JUPYTER_HOST: jupyter.drive.test.sunet.se + JUPYTERHUB_CRYPT_KEY: + valueFrom: + secretKeyRef: + name: jupyterhub-secrets + key: crypt-key NEXTCLOUD_CLIENT_ID: valueFrom: secretKeyRef: