Support Questions

Find answers, ask questions, and share your expertise

401 Unauthorized when logging in via OIDC

avatar
New Contributor

Hi, we're using OIDC with Keycloak. We get this issue when trying to log in on Hue (v4.10):

"
401
Unauthorized

Sorry, your user is not found, and settings doesn't allow to create a new user.
"

 

Any idea why the user isn't being created?

---

 

Our z-hue-overrides.ini has these changes:

[desktop]
http_x_frame_options = ALLOW
use_x_forwarded_host = true
secure_proxy_ssl_header = true

[[custom]]
[[auth]]
backend=desktop.auth.backend.OIDCBackend

[[oidc]]
create_users_on_login = true
superuser_group = hue_superuser
login_redirect_url = https://hue.local/oidc/callback/
login_redirect_url_failure = https://hue.local/hue/oidc_failed/

oidc_op_authorization_endpoint = https://idp.example.com/auth/realms/example-dev/protocol/openid-connect/auth
oidc_op_jwks_endpoint = https://idp.example.com/auth/realms/example-dev/protocol/openid-connect/certs
oidc_op_token_endpoint = https://idp.example.com/auth/realms/example-dev/protocol/openid-connect/token
oidc_op_user_endpoint = https://idp.example.com/auth/realms/example-dev/protocol/openid-connect/userinfo
oidc_rp_client_id = hue
oidc_rp_client_secret = secret
oidc_username_attribute = preferred_username

 

1 REPLY 1

avatar
New Contributor

Hello AndreiZ,

Did you find the answer please, I have the same error?

Please help

Best Regards,