Allow authstate to be persisted
This commit is contained in:
parent
913980a027
commit
c4c4ff2f31
|
@ -42,6 +42,7 @@ hub:
|
||||||
print(f'Time is: {now}, token expires: {expires}')
|
print(f'Time is: {now}, token expires: {expires}')
|
||||||
return True
|
return True
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
print(f'No auth_state available for user: {user.name}')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
c.JupyterHub.authenticator_class = NextcloudOAuthenticator
|
c.JupyterHub.authenticator_class = NextcloudOAuthenticator
|
||||||
|
@ -62,6 +63,11 @@ hub:
|
||||||
extraEnv:
|
extraEnv:
|
||||||
NEXTCLOUD_HOST: sunet.drive.test.sunet.se
|
NEXTCLOUD_HOST: sunet.drive.test.sunet.se
|
||||||
JUPYTER_HOST: jupyter.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:
|
NEXTCLOUD_CLIENT_ID:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
Loading…
Reference in a new issue