Congiguration Hue with OIDC keycloack

Hello,

I am trying to integrate hue 4.11 with oidc but it does not work, I get :
" 401 Unauthorized
Sorry, your user is not found, and settings doesn’t allow to create a new user."

In my hue.ini i put these values:
backend=desktop.auth.backend.OIDCBackend
oidc_rp_client_id=xxx
oidc_rp_client_secret=xxx
oidc_op_authorization_endpoint=https://mykeycloaxxxk/openid-connect/auth
oidc_op_token_endpoint=https://mykeycloakxxx/openid-connect/token
oidc_op_user_endpoint=https://mykeycloak/openid-connect/userinfo
OIDC_OP_JWKS_ENDPOINT=https://mykeycloak/openid-connect/certs
login_redirect_url=https://mylink-hue/oidc/callback/
logout_redirect_url=https://mylink-hue/openid-connect/logout
login_redirect_url_failure=https://mylink-hue//hue/oidc_failed
create_users_on_login=true

And in logs there are no Errors bur warning and Info in the file access.log:
INFO -anon- - “GET /hue/accounts/login/ HTTP/1.1” returned in 38ms 200 116736
INFO -anon- - “GET /oidc/authenticate/ HTTP/1.1” returned in 3ms 302 0
INFO -anon- - “GET /oidc/callback/ HTTP/1.1” returned in 9ms 302 0
DEBUG -anon- - “GET /hue/oidc_failed HTTP/1.1” -
WARNING -anon- - “GET /hue/oidc_failed HTTP/1.1” — 401 Unauthorized by oidc
INFO -anon- - “GET /hue/oidc_failed HTTP/1.1” returned in 15ms 401 120471
DEBUG -anon- - “GET /hue/accounts/login/ HTTP/1.1” -
DEBUG -anon- - “GET /hue/accounts/login/ HTTP/1.1” -
INFO -anon- - “GET /hue/accounts/login/ HTTP/1.1” returned in 43ms 200 116736
INFO -anon- - “GET /hue/accounts/login/ HTTP/1.1” returned in 48ms 200 116736
INFO -anon- - “POST /api/get_config/ HTTP/1.1” returned in 1ms 401 58
INFO -anon- - “POST /desktop/log_js_error HTTP/1.1” — login redirection
INFO -anon- - “POST /desktop/log_js_error HTTP/1.1” returned in 0ms 302 0
INFO -anon- - “POST /desktop/log_js_error HTTP/1.1” — login redirection
INFO -anon- - “POST /desktop/log_js_error HTTP/1.1” returned in 0ms 302 0
INFO -anon- - “GET /oidc/authenticate/ HTTP/1.1” returned in 3ms 302 0
INFO -anon- - “GET /oidc/authenticate/ HTTP/1.1” returned in 4ms 302 0
DEBUG -anon- - “GET /hue/accounts/login/ HTTP/1.1” -
DEBUG -anon- - “GET /hue/accounts/login/ HTTP/1.1” -
INFO -anon- - “GET /hue/accounts/login/ HTTP/1.1” returned in 53ms 200 116736
INFO -anon- - “GET /hue/accounts/login/ HTTP/1.1” returned in 59ms 200 11673

Does anyone have an idea about this error please?

Best Regards,

Hello,

I am having the same issue, were you able to fix it?