Fix user-redirect through authentication
@marcol480, @marchal, @philippo,
Context
JupyterHub allows for user-redirect URL's such as:
https://jupyterhub.ijclab.in2p3.fr/jupyter/hub/user-redirect/lab
which redirect to the eponymous url in the user's space:
https://jupyterhub.ijclab.in2p3.fr/jupyter/user/nicolas.thiery@universite-paris-saclay.fr/lab
See below for use cases.
The bug
This works well with our JupyterHub@Paris-Saclay instance, when the user is already logged in.
If instead the user is not yet logged in, he will be -- rightfully -- redirected to our SSO; however, when coming back to JupyterHub, the redirection is somehow lost. The user gets logged in at the default location.
I assume it's just some parameter that is not passed to the SSO. However I don't have control not know the details about this step.
Help needed!
Thank you,
Use cases
User-redirect allows for crafting URLs that, e.g.:
- launch jupyterlab, or the classic notebook, or a terminal, ...
- point to a given location in the user's space; e.g. the directory in the user's home containing the material for a class
- trigger a call to nbgitpuller which allows for easily populating such a directory
Such URLs makes for a smooth ans simple navigation of students straight to the relevant resource.
The first use-case above has become highly relevant now that there is a strong push in the community toward JupyterLab. With that feature, we could trivially have two buttons on the welcome page, one launching JupyterLab and the other classic Jupyter. Hence enabling users to migrate at their chosen pace.