Allow authstate to be persisted

This commit is contained in:
Micke Nordin 2024-01-13 16:09:47 +01:00
parent 913980a027
commit c4c4ff2f31
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -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: