Closed tlvu closed 7 months ago
@mishaschwartz I merged the pending https://github.com/Ouranosinc/jupyterhub/pull/29 so you are clear to do any fixes in that repo.
@tlvu
Is JUPYTERHUB_CRYPT_KEY
set?
If so, then the MagpieAuthenticator.refresh_pre_spawn
is set to True and the authorization_url
is required.
@tlvu https://github.com/Ouranosinc/jupyterhub/pull/30 should cover this edge case
Is
JUPYTERHUB_CRYPT_KEY
set? If so, then theMagpieAuthenticator.refresh_pre_spawn
is set to True and theauthorization_url
is required.
@mishaschwartz Oh indeed I also had JUPYTERHUB_CRYPT_KEY
set. I was trying out all the new options, didn't know they were mutually exclusive.
Confirmed that removing JUPYTERHUB_CRYPT_KEY
while having JUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL=""
, I was able to login and spawn the server fine.
Ouranosinc/jupyterhub#30 should cover this edge case
So I've read the PR, so the problem is not due to both JUPYTERHUB_CRYPT_KEY
and JUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL=""
are mutually exclusive but due to a previous auth_state left behind?
So both of these options can be set at the same time and it should work?
So both of these options can be set at the same time and it should work?
Yeah exactly
So both of these options can be set at the same time and it should work?
Yeah exactly
Just to be clear. Your fix is to make these 2 options not mutually exclusive. Otherwise, in the current state, they are mutually exclusive? Just so I fully understand the problem.
@tlvu
As of https://github.com/Ouranosinc/jupyterhub/pull/30 the behaviour is as follows:
JUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL
is set:
JUPYTERHUB_CRYPT_KEY
is set, jupyterhub will also:
JUPYTERHUB_AUTHENTICATOR_REFRESH_AGE
secondsJUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL
is not set:
JUPYTERHUB_CRYPT_KEY
can be set or not and will have no effect
Summary
Setting
JUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL=""
inenv.local
is unable to disable JupyterHub behind Twitcher. It breaks the spawn of the personal JupyterLab server completely.Details
Error in
docker logs jupyterhub
whenJUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL=""
is set inenv.local
:Error starting server lvu: Invalid URL '': No scheme supplied. Perhaps you meant https://?
Full error log:
Full log when it works (that switch is not set), starting from the exact same line
GET /jupyter/hub/ -> /jupyter/hub/spawn
:To Reproduce
Steps to reproduce the behavior:
2.1.2
(but should be broken since1.36.0
when JupyterHub was put behind Twitcher)export JUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL=""
inenv.local
Environment
Concerned Organizations
@mishaschwartz @fmigneault