<?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 Sense / QAP Engine API authentication possible with ticket? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-QAP-Engine-API-authentication-possible-with-ticket/m-p/1670688#M12231</link>
    <description>&lt;P&gt;I have the following Python code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;UrlWS = "wss://" + hostname + "/app/" # Trailing slash is important!
userDirectory, userId = "MyDirectory", "MyUserID"
wsheader=['X-Qlik-User: UserDirectory=' + userDirectory + '; UserId=' + userId]

ws = websocket.create_connection (
UrlWS,
header = wsheader
)&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I receive the following response:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{'jsonrpc': '2.0', 'method': 'OnAuthenticationInformation', 'params': {'loginUri': 'https://qap.mycompany.com:443/internal_forms_authentication/?targetId=42c6f9b3-a4e5-438a-bf00-46a6662b55bc', 'mustAuthenticate': True}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The loginUri above goes to a login form.&amp;nbsp; If I were to fill out and submit the form programmatically, would I get a ticket?&amp;nbsp; And how would I pass that into the Websocket interface?&lt;/P&gt;&lt;P&gt;Note that I get the same response even if I omit the X-Qlik-User header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:24:49 GMT</pubDate>
    <dc:creator>kevinpintokpa</dc:creator>
    <dc:date>2024-11-16T03:24:49Z</dc:date>
    <item>
      <title>Sense / QAP Engine API authentication possible with ticket?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-QAP-Engine-API-authentication-possible-with-ticket/m-p/1670688#M12231</link>
      <description>&lt;P&gt;I have the following Python code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;UrlWS = "wss://" + hostname + "/app/" # Trailing slash is important!
userDirectory, userId = "MyDirectory", "MyUserID"
wsheader=['X-Qlik-User: UserDirectory=' + userDirectory + '; UserId=' + userId]

ws = websocket.create_connection (
UrlWS,
header = wsheader
)&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I receive the following response:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{'jsonrpc': '2.0', 'method': 'OnAuthenticationInformation', 'params': {'loginUri': 'https://qap.mycompany.com:443/internal_forms_authentication/?targetId=42c6f9b3-a4e5-438a-bf00-46a6662b55bc', 'mustAuthenticate': True}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The loginUri above goes to a login form.&amp;nbsp; If I were to fill out and submit the form programmatically, would I get a ticket?&amp;nbsp; And how would I pass that into the Websocket interface?&lt;/P&gt;&lt;P&gt;Note that I get the same response even if I omit the X-Qlik-User header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Sense-QAP-Engine-API-authentication-possible-with-ticket/m-p/1670688#M12231</guid>
      <dc:creator>kevinpintokpa</dc:creator>
      <dc:date>2024-11-16T03:24:49Z</dc:date>
    </item>
  </channel>
</rss>

