You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using the AzureAdOAuthenticator to authenticate with Oauth to the Azure AD provider, the property "name" from the requested JWT token is used as username in JupyterHub. According to the Azure AD documentation:
The name claim provides a human-readable value that identifies the subject of the token. The value is not guaranteed to be unique, it is mutable, and it's designed to be used only for display purposes
It is therefore not reliable as a username (not unique, can contain spaces and special chars...)
I suggest using the object id instead, which is exactly the common unix username max size (32 chars long after removing the dashes in guid)
This is what I am doing currently in a project by overriding the behaviour in a inherited class, but it should probably be applied in future versions by default.
The text was updated successfully, but these errors were encountered:
I open an issue regarding this behavior of using the AD display name as username. In short, jupyterhub is not allowing to autheticate users because the display name contain an illegal char "/" #529
While using the AzureAdOAuthenticator to authenticate with Oauth to the Azure AD provider, the property "name" from the requested JWT token is used as username in JupyterHub. According to the Azure AD documentation:
It is therefore not reliable as a username (not unique, can contain spaces and special chars...)
I suggest using the object id instead, which is exactly the common unix username max size (32 chars long after removing the dashes in guid)
This is what I am doing currently in a project by overriding the behaviour in a inherited class, but it should probably be applied in future versions by default.
The text was updated successfully, but these errors were encountered: