It seems that you have configured Basic Http authentication backend. Something like following in hue.ini:
[desktop]
[[auth]]
backend=desktop.auth.backend.RemoteUserDjangoBackend
To change this behavior, you need to specify other authentication backend.
You may set something like
desktop.auth.backend.PamBackend to authenticate users by PAM modules, or
desktop.auth.backend.AllowAllBackend to disable authentication at all.Or just fall back to default configuration desktop.auth.backend.AllowFirstUserDjangoBackend (first logged in user is the admin, and it have access to create accounts for other users in Hue internal database).