<?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 Re: Problems with authentication using webticket in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problems-with-authentication-using-webticket/m-p/1372189#M8051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you manage to solve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 21:07:35 GMT</pubDate>
    <dc:creator>vitor_hirota</dc:creator>
    <dc:date>2018-07-04T21:07:35Z</dc:date>
    <item>
      <title>Problems with authentication using webticket</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problems-with-authentication-using-webticket/m-p/1372188#M8050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to make authentication using web tickets for users from another service. I have set up virtual proxy and sending queries by CURL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1&lt;/P&gt;&lt;P&gt;Send query to url - &lt;A href="https://app.bbsales.ru/ticket/hub/" title="https://app.bbsales.ru/ticket/hub/"&gt;https://sitename/ticket/hub/&lt;/A&gt; and got redirect 302 and response array with 2 params:&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15010637438999756" jivemacro_uid="_15010637438999756" modifiedtitle="true"&gt;
&lt;P&gt;Array&lt;/P&gt;
&lt;P&gt;(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [proxyRestUri] =&amp;gt; https%3a%2f%2fsitename%3a4243%2fqps%2fticket%2f&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [targetId] =&amp;gt; da35fb7c-0a07-4087-bce3-33478999c4ca&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2&lt;/P&gt;&lt;P&gt;Configure CURL to work with proxy by adding options:&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15010646843247575" jivemacro_uid="_15010646843247575" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-weight: bold; background-color: #f7faff; font-size: 10pt;"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;curl_setopt&lt;/SPAN&gt;($&lt;/SPAN&gt;&lt;SPAN style="color: #660000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f7faff;"&gt;curl&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold; background-color: #f7faff; font-size: 10pt;"&gt;&lt;SPAN&gt;, CURLOPT_PROXY, '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://sitename:8185');" rel="nofollow" target="_blank"&gt;https://sitename:8185');&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Add HTTP POST Data and turn in JSON format before sending:&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15010644610947438 jive_text_macro" jivemacro_uid="_15010644610947438" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="color: #660000; background-color: #f7faff;"&gt;$ticketAuth &lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #f7faff; font-weight: bold;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #f7faff; font-weight: bold;"&gt;'UserDirectory' &lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;=&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #f7faff; font-weight: bold;"&gt;'testDirectory'&lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #f7faff; font-weight: bold;"&gt;'UserId' &lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;=&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #f7faff; font-weight: bold;"&gt;'testUserID'&lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #f7faff; font-weight: bold;"&gt;'TargetId' &lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;=&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #f7faff; font-weight: bold;"&gt;'targetId'&lt;/SPAN&gt;&lt;SPAN style="background-color: #f7faff;"&gt;],&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: #f7faff;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Add Headers to query&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15010647948882688 jive_text_macro" jivemacro_uid="_15010647948882688" modifiedtitle="true"&gt;
&lt;P&gt;curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-qlik-xrfkey:aaaaaaaaaaaaaaaa', 'Content-Type: application/json'));&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Send query to the proxyRestUri - &lt;A href="https://app.bbsales.ru:4243/qps/ticket//ticket?xrfkey=aaaaaaaaaaaaaaaa" title="https://app.bbsales.ru:4243/qps/ticket//ticket?xrfkey=aaaaaaaaaaaaaaaa"&gt;https://sitename:4243/qps/ticket//ticket?xrfkey=aaaaaaaaaaaaaaaa&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And after executing query, I receive&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15010648591362811" jivemacro_uid="_15010648591362811" modifiedtitle="true"&gt;
&lt;P&gt;Response code - 0&lt;/P&gt;
&lt;P&gt;Error - Failed to connect to sitename port 8185: Operation timed out&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 10:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problems-with-authentication-using-webticket/m-p/1372188#M8050</guid>
      <dc:creator>mdbender</dc:creator>
      <dc:date>2017-07-26T10:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with authentication using webticket</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problems-with-authentication-using-webticket/m-p/1372189#M8051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you manage to solve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 21:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problems-with-authentication-using-webticket/m-p/1372189#M8051</guid>
      <dc:creator>vitor_hirota</dc:creator>
      <dc:date>2018-07-04T21:07:35Z</dc:date>
    </item>
  </channel>
</rss>

