Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
morenoju
Partner - Specialist
Partner - Specialist

Error 400 when logging with OIDC through Keycloak

Hi all,

I've configured OIDC with Keycloak for my Qlik Sense for Windows as per this article:

https://community.qlik.com/t5/Knowledge/Qlik-Sense-for-Windows-How-to-configure-OIDC-with-Keycloak/t...

However, after using my credentials I get an Error 400 Bad Request Contact your system administrator. The user cannot be authenticated or logged out by the OIDC response through the following virtual proxy: keycloak.

morenoju_0-1649094616321.png

I've looked at the Audit_Proxy log in C:\ProgramData\Qlik\Sense\Log\Proxy\Trace and I see:

15161 20220404T175230.536+0000 WARN azure-qlik-demo Audit.Proxy.Proxy.SessionEstablishment.Authentication.OIDC.OidcAuthenticationHandler 131 378d8f51-28eb-48d6-822f-34bfd9135556 azure-qlik-demo\QlikServices Proxy.SessionEstablishment.Authentication.OIDC.OidcAttributeParserException: Exception of type 'Proxy.SessionEstablishment.Authentication.OIDC.OidcAttributeParserException' was thrown.↵↓ at Proxy.SessionEstablishment.Authentication.OIDC.OidcAttributeParser.ParseUserDirectory(JwtPayload jwtPayload, String subjectAttributeField, String realm)↵↓ at Proxy.SessionEstablishment.Authentication.OIDC.OidcAuthenticationHandler.<GetAuthenticatedUser>d__11.MoveNext() 0 862b90b5-0828-486a-8c3a-89434bc4caaf ::ffff:172.19.7.98 {keycloak} 043edfe1d2021b49bf6392980199db57289764d0

This message is very similar to the one described in https://community.qlik.com/t5/Knowledge/Qlik-Sense-How-to-request-an-OIDC-token-manually-and-check-i..., but in that thread the issue was related to having mandatory attributes in the Virtual Proxy configuration in QMC. In my configuration I don't have any OIDC attribute mapping.

Any idea of what might be failing?

Thanks

Labels (1)
  • API

3 Replies
annabelg
Partner - Contributor
Partner - Contributor

Good morning,

Did you solve the issue by any chance, as I am having the same issue ?

morenoju
Partner - Specialist
Partner - Specialist
Author

Yes, I found a way to solve it. This is what I did:

I set the realm name in the Qlik Sense Virtual Proxy. It is marked as optional, but I added it nevertheless. I also inserted the client secret again. I got a new error this time "Proxy unable to load balance any of the engine services".

I added "central" as load balancer for the Qlik Sense keycloak Virtual Proxy and tried again. This time I was able to log in with my Keycloak user.

I hope it helps.

Micky123
Contributor
Contributor

hey @morenoju i am having problem configuring keycloak integration with qliksense can you send me what all steps you did other than this https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-for-Windows-How-to-configure-OIDC...