<?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: Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577476#M10481</link>
    <description>&lt;P&gt;Version 13.15.0 was released just now and should fix this issue:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nuget.org/packages/QlikSense.NetSDK/13.15.0" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/QlikSense.NetSDK/13.15.0&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 08:50:36 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2019-05-08T08:50:36Z</dc:date>
    <item>
      <title>Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577044#M10464</link>
      <description>&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started to work with .net sdk a month ago,&lt;/P&gt;&lt;P&gt;now i have a problem that i can't solve, my goal is to replicate the web-browser's call on the qlik sense's printing service on the .Net SDK (.net Core),&lt;/P&gt;&lt;P&gt;so i need the session token on the header (for example: "&lt;EM&gt;Cookie:X-Qlik-Session=098d42b5-8b68-4a5f-b079-9ee569fec211&lt;/EM&gt;").&lt;/P&gt;&lt;P&gt;I'm able to retrieve this token from the follow call using the the latest Qlik SDK(v13.14.0) for.Net Framework v4.5.2,&lt;/P&gt;&lt;P&gt;the working code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ILocation location = Qlik.Engine.Location.FromUri(uri);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var user = "myuserid"; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var pass = "mypassword";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;location.AsNtlmUserViaProxy(proxyUsesSsl: uri.Scheme.Equals(Uri.UriSchemeHttps), loginCredentials: new System.Net.NetworkCredential(user, pass));&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using (IHub hub = location.Hub(noVersionCheck: true))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;String SessionCookie = location.SessionCookie;&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Console.WriteLine("My session cookie is: " + SessionCookie);&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;//Console.WriteLine(hub.EngineVersion().ComponentVersion);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Now, i need this SessionCookie valorized correctly into the .&lt;STRONG&gt;NetCore&lt;/STRONG&gt;&amp;nbsp;v2.1 framework Environment, and using the same code above on the same version of Qlik SDK, it gave me a &lt;EM&gt;null&lt;/EM&gt; value.&lt;/P&gt;&lt;P&gt;Someone can explain me the reason why, or suggest a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Lu Quan&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 05:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577044#M10464</guid>
      <dc:creator>LuQuan182</dc:creator>
      <dc:date>2024-11-16T05:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577256#M10470</link>
      <description>&lt;P&gt;This is a bug in the .NET Core implementation of the connection mechanism. Thank you very much for reporting this and bringing it to our attention. We will report back to this thread when there is a fix available.&lt;/P&gt;
&lt;P&gt;A workaround for you might be to acquire the ticket up front and connect using that ticket using the AsExistingSessionViaProxy configuration. There is an example that illustrates such a flow available here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/AptkQlik/PublicExamples/tree/master/ConnectServerTicketAttach" target="_blank"&gt;https://github.com/AptkQlik/PublicExamples/blob/master/ConnectServerTicketAttach&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The flow described in that example is based on .NET Framework 4.5.2, but a similar flow can be implemented for .NET Core.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 09:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577256#M10470</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-05-07T09:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577428#M10479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41242"&gt;@Øystein_Kolsrud&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried the workaround, and i have the same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works for .&lt;STRONG&gt;Net&lt;/STRONG&gt; but it doesnt works for the .&lt;STRONG&gt;NetCore&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Error detail below:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="getCookieError.JPG" style="width: 734px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11565i8AD1F3F4DCEE6038/image-size/large?v=v2&amp;amp;px=999" role="button" title="getCookieError.JPG" alt="getCookieError.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;there is another workaround?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lu Quan&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 13:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577428#M10479</guid>
      <dc:creator>LuQuan182</dc:creator>
      <dc:date>2019-05-07T13:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577469#M10480</link>
      <description>&lt;P&gt;I think the credential part of HttpClientHandler is handled differently in .NET Core compared to .NET Framework. You need to explicitly set it. You can see an example here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L120" target="_blank" rel="noopener"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L120&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 14:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577469#M10480</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-05-07T14:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577476#M10481</link>
      <description>&lt;P&gt;Version 13.15.0 was released just now and should fix this issue:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nuget.org/packages/QlikSense.NetSDK/13.15.0" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/QlikSense.NetSDK/13.15.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 08:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577476#M10481</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-05-08T08:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577484#M10482</link>
      <description>thanks, it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 07 May 2019 14:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577484#M10482</guid>
      <dc:creator>LuQuan182</dc:creator>
      <dc:date>2019-05-07T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve SessionCookie using AsNtlmUserViaProxy, for the printing service</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577505#M10483</link>
      <description>&lt;P&gt;Good! I'm happy to hear that. And thanks again for providing the feedback. Input like this from the community is very valuable for getting the .NET Core version of the SDK to a quality that will allow us to move it out of experimental status.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 14:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-SessionCookie-using-AsNtlmUserViaProxy-for-the-printing/m-p/1577505#M10483</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-05-07T14:38:30Z</dc:date>
    </item>
  </channel>
</rss>

