Due to oauth2 configs our users’ usernames emulate the email pattern user@domain.com. Home directories reflect the entire email address, i.e., jupyter-user@domain.com
I’d prefer to constrain usernames to just the user portion of the mail to the left of @. This would make it easier to login, eliminate uglier urls, etc.
Is there an easy way to achieve this? Does it require extending the User class?
I’m also interested in stripping out the “jupyter-” part from the usernames. The doc string for Authenticators — JupyterHub 2.1.1 documentation didn’t give me an obvious way to do this but if I work it out i’ll share here
The username is returned by whatever authenticator you’re using- there are lots of them! Some authenticators let you customise the returned username. If they don’t then you can override the class as mentioned in my previous post.