<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error 400 when logging with OIDC through Keycloak in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/1914126#M16570</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I've configured OIDC with Keycloak for my Qlik Sense for Windows as per this article:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Qlik-Sense-for-Windows-How-to-configure-OIDC-with-Keycloak/ta-p/1812463" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Knowledge/Qlik-Sense-for-Windows-How-to-configure-OIDC-with-Keycloak/ta-p/1812463&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="morenoju_0-1649094616321.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76199iAB48F7AF9088DE99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="morenoju_0-1649094616321.png" alt="morenoju_0-1649094616321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've looked at the&amp;nbsp;Audit_Proxy log in&amp;nbsp;C:\ProgramData\Qlik\Sense\Log\Proxy\Trace and I see:&lt;/P&gt;
&lt;P&gt;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.&amp;lt;GetAuthenticatedUser&amp;gt;d__11.MoveNext() 0 862b90b5-0828-486a-8c3a-89434bc4caaf ::ffff:172.19.7.98 {keycloak} 043edfe1d2021b49bf6392980199db57289764d0&lt;/P&gt;
&lt;P&gt;This message is very similar to the one described in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge/Qlik-Sense-How-to-request-an-OIDC-token-manually-and-check-if/ta-p/1843408" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Knowledge/Qlik-Sense-How-to-request-an-OIDC-token-manually-and-check-if/ta-p/1843408&lt;/A&gt;, but in that thread the issue was related to having&amp;nbsp;&lt;SPAN&gt;mandatory attributes in the Virtual Proxy configuration in QMC. In my configuration I don't have any OIDC attribute mapping.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any idea of what might be failing?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 18:10:00 GMT</pubDate>
    <dc:creator>morenoju</dc:creator>
    <dc:date>2022-04-04T18:10:00Z</dc:date>
    <item>
      <title>Error 400 when logging with OIDC through Keycloak</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/1914126#M16570</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I've configured OIDC with Keycloak for my Qlik Sense for Windows as per this article:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Qlik-Sense-for-Windows-How-to-configure-OIDC-with-Keycloak/ta-p/1812463" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Knowledge/Qlik-Sense-for-Windows-How-to-configure-OIDC-with-Keycloak/ta-p/1812463&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="morenoju_0-1649094616321.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/76199iAB48F7AF9088DE99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="morenoju_0-1649094616321.png" alt="morenoju_0-1649094616321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've looked at the&amp;nbsp;Audit_Proxy log in&amp;nbsp;C:\ProgramData\Qlik\Sense\Log\Proxy\Trace and I see:&lt;/P&gt;
&lt;P&gt;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.&amp;lt;GetAuthenticatedUser&amp;gt;d__11.MoveNext() 0 862b90b5-0828-486a-8c3a-89434bc4caaf ::ffff:172.19.7.98 {keycloak} 043edfe1d2021b49bf6392980199db57289764d0&lt;/P&gt;
&lt;P&gt;This message is very similar to the one described in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge/Qlik-Sense-How-to-request-an-OIDC-token-manually-and-check-if/ta-p/1843408" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Knowledge/Qlik-Sense-How-to-request-an-OIDC-token-manually-and-check-if/ta-p/1843408&lt;/A&gt;, but in that thread the issue was related to having&amp;nbsp;&lt;SPAN&gt;mandatory attributes in the Virtual Proxy configuration in QMC. In my configuration I don't have any OIDC attribute mapping.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any idea of what might be failing?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 18:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/1914126#M16570</guid>
      <dc:creator>morenoju</dc:creator>
      <dc:date>2022-04-04T18:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 when logging with OIDC through Keycloak</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/1919662#M16649</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;Did you solve the issue by any chance, as I am having the same issue ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 07:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/1919662#M16649</guid>
      <dc:creator>annabelg</dc:creator>
      <dc:date>2022-04-19T07:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 when logging with OIDC through Keycloak</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/1919904#M16665</link>
      <description>&lt;P&gt;Yes, I found a way to solve it. This is what I did:&lt;/P&gt;
&lt;P&gt;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".&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I hope it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/1919904#M16665</guid>
      <dc:creator>morenoju</dc:creator>
      <dc:date>2022-04-19T12:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 when logging with OIDC through Keycloak</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/2062800#M18435</link>
      <description>&lt;P&gt;hey &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2239"&gt;@morenoju&lt;/a&gt;&amp;nbsp;i am having problem configuring keycloak integration with qliksense can you send me what all steps you did other than this&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-for-Windows-How-to-configure-OIDC-with-Keycloak/ta-p/1812463" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-for-Windows-How-to-configure-OIDC-with-Keycloak/ta-p/1812463&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 03:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-400-when-logging-with-OIDC-through-Keycloak/m-p/2062800#M18435</guid>
      <dc:creator>Micky123</dc:creator>
      <dc:date>2023-04-21T03:30:54Z</dc:date>
    </item>
  </channel>
</rss>

