<?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: Rest connector: With connection + Authentication scheme in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1671509#M12256</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What I had to use is different, but I had double quote around "Authorization" and double quote around the entire value of it. Maybe try to&lt;SPAN&gt;&amp;nbsp;assign the whole value part of it to a variable and use it that way and see if it helps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET vAuthorization = 'Basic ' &amp;amp; '$(username)' &amp;amp; ':' &amp;amp; '$(password)';

SQL Select ...

HTTPHEADER "Authorization" "$(vAuthorization)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mehrnaz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Feb 2020 14:07:06 GMT</pubDate>
    <dc:creator>Mehrnaz</dc:creator>
    <dc:date>2020-02-01T14:07:06Z</dc:date>
    <item>
      <title>Rest connector: With connection + Authentication scheme</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1646839#M11794</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I've a question about the with connection statement. I want the connection variable, so I have to use the with connection statement. In my rest connection I use the authentication scheme basic with an username and password. I need to know how to write this scheme in the with connection!?!?&lt;/P&gt;&lt;P&gt;I loaded the normal rest conn table and instead of the conn string I used a dummy conn. In addition I add (&lt;EM&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/EM&gt;) to the FROM Clause. Thereafter the with connection statement. Here is an example of what I&amp;nbsp; reached so far:&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Dummyconnection';&lt;BR /&gt;&lt;BR /&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"__KEY_reportAssessments_v2_0s",&lt;BR /&gt;(SELECT&lt;BR /&gt;"ALL_FIELDS",&lt;BR /&gt;"__FK_ReportAssessment_v2_0"&lt;BR /&gt;FROM "ReportAssessment_v2_0" FK "__FK_ReportAssessment_v2_0")&lt;BR /&gt;FROM XML "reportAssessments_v2_0s" PK "__KEY_reportAssessments_v2_0s"&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/P&gt;&lt;P&gt;WITH CONNECTION(&lt;BR /&gt;Url "$(URL)",&lt;BR /&gt;HTTPHEADER "Authorization: Basic $(username):$(password)"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;Please let my know what I have to change, because it's not working now. Qlik support told me I could possible use this: &lt;SPAN&gt;&lt;SPAN class="feeditemtext cxfeeditemtext"&gt;Authorization: Basic &amp;lt;credentials&amp;gt;, where credentials is the base64 encoding of id and password joined by a single colon :.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1646839#M11794</guid>
      <dc:creator>mikebumamv</dc:creator>
      <dc:date>2024-11-16T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rest connector: With connection + Authentication scheme</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1671509#M12256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What I had to use is different, but I had double quote around "Authorization" and double quote around the entire value of it. Maybe try to&lt;SPAN&gt;&amp;nbsp;assign the whole value part of it to a variable and use it that way and see if it helps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET vAuthorization = 'Basic ' &amp;amp; '$(username)' &amp;amp; ':' &amp;amp; '$(password)';

SQL Select ...

HTTPHEADER "Authorization" "$(vAuthorization)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mehrnaz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 14:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1671509#M12256</guid>
      <dc:creator>Mehrnaz</dc:creator>
      <dc:date>2020-02-01T14:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rest connector: With connection + Authentication scheme</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1737400#M13157</link>
      <description>&lt;P&gt;I have the same issue and your solution doesn't work. It is so frustrating that you can't loop through URLs with a single connection if basic authentication is required...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1737400#M13157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-20T13:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rest connector: With connection + Authentication scheme</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1737416#M13158</link>
      <description>&lt;P&gt;Hi JeromeHoen, my authorization wasn't basic , so, it shouldn't work for basic authentication. I had to pass in bearer token and stuff like that and it works fine.&lt;/P&gt;&lt;P&gt;What would happen if you create a simple connection through the wizard:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Authentication Schema" style="width: 595px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39338i6FAB699963A39E3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="basic (2).png" alt="Authentication Schema" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Authentication Schema&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and choose "Basic" from the dropdown and in script, and in your loop, you only change the url or body (or whatever you need to modify o each loop) and run it? I haven't done that as my scenario was very different, but it's worth a try.&lt;/P&gt;&lt;P&gt;Best of luck though!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 14:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1737416#M13158</guid>
      <dc:creator>Mehrnaz</dc:creator>
      <dc:date>2020-08-20T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rest connector: With connection + Authentication scheme</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1794510#M14060</link>
      <description>&lt;P&gt;To do a Basic Authentication, it is necessary that the username and password be converted to Base64 concatenated the &lt;STRONG&gt;Username&amp;nbsp; &amp;amp;&amp;nbsp; ':'&amp;nbsp; &amp;amp; Password &lt;/STRONG&gt;and then convert to Base64. The resulting String you then pass in the Header by WITH CONNECTION as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTTPHEADER "Autorization" "Basic $ (vBase64String)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To convert to Base64, see excelent article at &lt;A href="https://spivey.world/qlik%20sense/2020/10/08/base64-encode-qlik-script.html" target="_blank"&gt;https://spivey.world/qlik%20sense/2020/10/08/base64-encode-qlik-script.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works for me and I believe it will works for you too.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 14:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1794510#M14060</guid>
      <dc:creator>jptneumann</dc:creator>
      <dc:date>2021-03-25T14:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rest connector: With connection + Authentication scheme</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1974887#M17267</link>
      <description>&lt;P&gt;URL doesn't work anymore&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this one instead&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.base64encode.org/" target="_blank"&gt;https://www.base64encode.org/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 14:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Rest-connector-With-connection-Authentication-scheme/m-p/1974887#M17267</guid>
      <dc:creator>Chotana2</dc:creator>
      <dc:date>2022-08-30T14:05:31Z</dc:date>
    </item>
  </channel>
</rss>

