Closed Zeitsperre closed 8 months ago
Thanks for submitting an issue. Make sure you have checked for similar issues. Also, provide enough details for us to be able to replicate the problem.
@fmigneault is there a config switch in Magpie to disable login using email?
This is because jupyterhub uses the value that is provided by the user in the "Username" field to determine the jupyter_hub user name:
It is a quirk of Magpie that you can provide an email address in the "user_name" field and it will work with the exact same behaviour.
Note that this has been the case since the introduction of the Magpie Jupyterhub Authenticator:
I believe the issue here is more on the JupyterHub login handler than Magpie. It should do a request /magpie/users/current
with the obtained login token to retrieve the user name instead of assuming it is the provided value.
If this issue should be moved to the JupyterLab repo, feel free to transfer it. This really threw me and the user who was having trouble for a loop this morning.
I believe the issue here is more on the JupyterHub login handler than Magpie. It should do a request /magpie/users/current with the obtained login token to retrieve the user name instead of assuming it is the provided value.
Alright, I can work on that
@fmigneault
fix in place here: https://github.com/Ouranosinc/jupyterhub/pull/26
(sorry I can't add you as a reviewer)
@fmigneault
fix in place here: Ouranosinc/jupyterhub#26
(sorry I can't add you as a reviewer)
fmigneault added as reviewer.
Describe the bug
This just happened with a user today.
The user forgot his username and decided to use his email to log in to PAVICS (via JupyterLab). They were authenticated by Magpie, and proceeded to enter their workspace, but the docker image failed to build. Upon inspection, the URL shows that instead of the account name (e.g.
jupyter/user/myusername
), PAVICS attempted to spawn an instance using their email (e.g.jupyter/user/me@mydomain.ca
).To Reproduce
Expected behavior If an email is used to log in, the workspace URL should use the associated account name and not the email. It should also not hang for several minutes, then crash.
Screenshots
Desktop (please complete the following information):