<?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>article How to get started with the Basic Authentication connector in Qlik Application Automation in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-get-started-with-the-Basic-Authentication-connector-in/ta-p/2057190</link>
    <description>&lt;P&gt;&lt;SPAN&gt;This article is meant to get users started on the Basic Authentication connector in Qlik Application Automation.&lt;/SPAN&gt;&lt;BR /&gt;The connector is designed for advanced users to connect to platforms that do not have a dedicated connector.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The connector employs the Basic authentication flow, which requires only the username and password to make requests to a specific API.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;Index:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="4"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;&lt;STRONG&gt;Limitations&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;SPAN&gt;This connector will work with the majority of Basic Authentication flows. In cases where there are additional fields to be sent such as additional query parameters in the authorize&amp;nbsp;request, this connector will not work.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;&lt;STRONG&gt;How to connect&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Begin by looking for the "Basic Authentication" connector. When you click connect, the following input parameters are requested:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector name:&lt;/STRONG&gt; A name for the connection. This can be used as an identifier for the user in the editor to differentiate between different API key connections.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Username:&amp;nbsp;&lt;/STRONG&gt;Enter t&lt;SPAN&gt;he API username to use for authentication.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Password:&amp;nbsp;&lt;/STRONG&gt;Enter the&amp;nbsp;&lt;SPAN&gt;API users password to use for authentication.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Base URL:&amp;nbsp;&lt;/STRONG&gt;This should be the beginning of the URL to which you will be making REST calls. We recommend including this because it prevents calls to other URLs (omit the https://).&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;&lt;STRONG&gt;How to use in an automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Once you select the connector you will notice that there are only a few blocks available, depending on the type of request and pagination involved in your request. These blocks have the following input variables:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;&lt;STRONG&gt;RAW API REQUEST BLOCK&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Path:&amp;nbsp;&lt;/STRONG&gt;This needs to be relative to the Base URL you provided when connecting.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Method:&amp;nbsp;&lt;/STRONG&gt;Enum choice between GET, POST, DELETE, PATCH or PUT.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Query Parameters:&amp;nbsp;&lt;/STRONG&gt;Here you can provide a JSON object and the key/values will be added to the path as query parameters.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Request Body:&amp;nbsp;&lt;/STRONG&gt; A JSON object can be provided for POST, PATCH or PUT operations that will be sent as a request body.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Headers:&amp;nbsp;&lt;/STRONG&gt;JSON object and these keys/values will be added as headers to the request.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;&lt;STRONG&gt;RAW API LIST REQUEST BLOCK(s)&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Method:&amp;nbsp;&lt;/STRONG&gt;Enum choice between GET, and POST in case of the block with No Paging Support is selected. The rest of the List Request blocks use the GET method by default.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Json Path for Output Records:&amp;nbsp;&lt;/STRONG&gt;This field is used to parse a section of the JSON returned by the API endpoint. This only returns a parsed VALUE.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Other Input Parameters:&amp;nbsp;&lt;/STRONG&gt;Other input parameters in the blocks are determined by the type of paging supported by the block. You can find more information about those under the input text boxes.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Json Path for Cursor :&amp;nbsp;&lt;/STRONG&gt;This field is used to indicate the location of "&lt;EM&gt;next page URL&lt;/EM&gt;" or the "&lt;EM&gt;token&lt;/EM&gt;" for the next page in the response.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;&lt;STRONG&gt;An Example&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The following example will obtain a list of contacts from the DotDigital application.&amp;nbsp;We do not yet have a connector to do this and Basic Authorization is used to obtain the value for the Authorization header.&amp;nbsp;&amp;nbsp;We start by obtaining the Base URL and username and password from the DotDigital documentation. We can find these at&amp;nbsp;&lt;A href="https://developer.dotdigital.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.dotdigital.com/&lt;/A&gt;&amp;nbsp;.&amp;nbsp;We then use the following values:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector Name :&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DotDigital&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Username : ***************&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Password : ****************&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Base URL :&amp;nbsp;&lt;/STRONG&gt;r1-api.dotdigital.com/v2/&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Once you input the above details in the connector connection pop-up and click save, it will say the connector is connected. But since this is a generic connector, we don't have a way of verifying if the connector is actually connected. This will be evident when you run an endpoint.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="basau.png" style="width: 752px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104385iAE016AF8C80C7391/image-size/large?v=v2&amp;amp;px=999" role="button" title="basau.png" alt="basau.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT style="--darkreader-inline-color: #6ecf9e;" color="#339966" data-darkreader-inline-color=""&gt;&lt;STRONG&gt;Using it in an automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Create a new automation and drag the Raw API List Request Offset-Based Paging block from the Basic Authentication connector onto the canvas.&amp;nbsp; Since the DotDigital connector supports offset-based paging, we will be using the Offset-Based Paging block to execute the list contacts api.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Raw API List Request Offset-Based Paging block inputs are as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Path :&amp;nbsp;&lt;/STRONG&gt;contacts&amp;nbsp; (we have already provided "&lt;STRONG&gt;r1-api.dotdigital.com/v2/&lt;/STRONG&gt;" during connection, "&lt;STRONG&gt;https://&lt;/STRONG&gt;" is added by default)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Query Parameters:&amp;nbsp;&lt;/STRONG&gt;{"withFullData": "true"}&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Headers:&amp;nbsp;&lt;/STRONG&gt;No extra headers required,&amp;nbsp;&lt;STRONG&gt;"Accept: application/json"&lt;/STRONG&gt;&amp;nbsp;is sent by default.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Page Size Field Name:&amp;nbsp;&lt;/STRONG&gt;select&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Page Size:&amp;nbsp;&lt;/STRONG&gt;100&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Offset Field Name:&amp;nbsp;&lt;/STRONG&gt;skip&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Offset Start:&amp;nbsp;&lt;/STRONG&gt;0&amp;nbsp;&amp;nbsp;&lt;BR /&gt;These last four parameters enable the offset-based paging. You can read more about this&amp;nbsp;&lt;A href="https://betterprogramming.pub/building-apis-a-comparison-between-cursor-and-offset-pagination-88261e3885f8#:~:text=Offset%20Implementation" target="_blank" rel="noopener nofollow noreferrer"&gt;here.&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Json Path For Output Records:&lt;/STRONG&gt;&amp;nbsp;No json path is required for this list, as the contact API results are not inside any array.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="basau2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104386i8B73B19659D66F0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="basau2.png" alt="basau2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;Now when you execute this, it will return the list of contacts in DotDigital.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="basau3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104913i05A11D9AE254617D/image-size/large?v=v2&amp;amp;px=999" role="button" title="basau3.png" alt="basau3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and is to be used at your own discretion. Depending on the tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 15:30:00 GMT</pubDate>
    <dc:creator>Ankit_KSingh</dc:creator>
    <dc:date>2023-04-20T15:30:00Z</dc:date>
    <item>
      <title>How to get started with the Basic Authentication connector in Qlik Application Automation</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-get-started-with-the-Basic-Authentication-connector-in/ta-p/2057190</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-get-started-with-the-Basic-Authentication-connector-in/ta-p/2057190</guid>
      <dc:creator>Ankit_KSingh</dc:creator>
      <dc:date>2023-04-20T15:30:00Z</dc:date>
    </item>
  </channel>
</rss>

