<?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 JWT with multiple aud values causes authentication error in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/JWT-with-multiple-aud-values-causes-authentication-error/m-p/2517964#M22198</link>
    <description>&lt;P&gt;I have configured a virtual proxy in my&amp;nbsp;&lt;SPAN&gt;Qlik Sense Enterprise for Windows instance with JWT authentication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The JWT I am providing in the Authorization header is generated by Auth0, and as such has two values for audience:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"aud": [
  "https://myapp.com",
  "https://anna-development.auth0.com/userinfo"
],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the expected aud value in the virtual proxy set to "&lt;A href="https://myapp.com" target="_blank" rel="noopener"&gt;https://myapp.com&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When attempting to authenticate with this JWT, Qlik logs this error:&lt;/P&gt;&lt;P&gt;Audit.Proxy.Proxy.SessionEstablishment.Authentication.JWT.JwtAuthenticationHandler [...] JWT contains aud claim with invalid value: System.Collections.ArrayList [..]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An array is a valid value for the aud field in a JWT.&lt;/P&gt;&lt;P&gt;Qlik's documentation even references this &lt;A href="https://help.qlik.com/en-US/sense-admin/November2024/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/JWT-authentication.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;(note that recipients is plural):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Audience (&lt;SPAN class=""&gt;aud&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Identifies the recipients of the token.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 15 May 2025 14:20:26 GMT</pubDate>
    <dc:creator>milesokeefe</dc:creator>
    <dc:date>2025-05-15T14:20:26Z</dc:date>
    <item>
      <title>JWT with multiple aud values causes authentication error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/JWT-with-multiple-aud-values-causes-authentication-error/m-p/2517964#M22198</link>
      <description>&lt;P&gt;I have configured a virtual proxy in my&amp;nbsp;&lt;SPAN&gt;Qlik Sense Enterprise for Windows instance with JWT authentication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The JWT I am providing in the Authorization header is generated by Auth0, and as such has two values for audience:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"aud": [
  "https://myapp.com",
  "https://anna-development.auth0.com/userinfo"
],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the expected aud value in the virtual proxy set to "&lt;A href="https://myapp.com" target="_blank" rel="noopener"&gt;https://myapp.com&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When attempting to authenticate with this JWT, Qlik logs this error:&lt;/P&gt;&lt;P&gt;Audit.Proxy.Proxy.SessionEstablishment.Authentication.JWT.JwtAuthenticationHandler [...] JWT contains aud claim with invalid value: System.Collections.ArrayList [..]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An array is a valid value for the aud field in a JWT.&lt;/P&gt;&lt;P&gt;Qlik's documentation even references this &lt;A href="https://help.qlik.com/en-US/sense-admin/November2024/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/JWT-authentication.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;(note that recipients is plural):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Audience (&lt;SPAN class=""&gt;aud&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Identifies the recipients of the token.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 15 May 2025 14:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/JWT-with-multiple-aud-values-causes-authentication-error/m-p/2517964#M22198</guid>
      <dc:creator>milesokeefe</dc:creator>
      <dc:date>2025-05-15T14:20:26Z</dc:date>
    </item>
  </channel>
</rss>

