<?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: How to Set Up HMAC SHA256 Authentication in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327310#M96701</link>
    <description>&lt;P&gt;I don't suppose your original post ever surfaced, did it? I'm trying to connect to a RESTful API using what looks like a similar authentication process, but the API documentation provides the following Java code&amp;nbsp;to generate the signature from a combination of the query parameters portion of the URL and my private key:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;private static string GetSignature(string args, string privatekey) {
    var encoding = new System.Text.ASCIIEncoding();
    byte[ ] key = encoding.GetBytes(privatekey);
    var myhmacsha256 = new HMACSHA256(key);
    byte[ ] hashValue = myhmacsha256.ComputeHash(encoding.GetBytes(args)); 
    string hmac64 = Convert.ToBase64String(hashValue); 
    myhmacsha256.Clear();
    return hmac64; 
    }&lt;/PRE&gt; 
&lt;P&gt;The trouble I'm having is that I don't know how to set up this function in OpenStudio, or how to call it when specifying the "api-auth-signature" parameter for my tRestClient&amp;nbsp;component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What am I missing?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm new here, obviously. I don't know if it shows... &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 23:32:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-21T23:32:57Z</dc:date>
    <item>
      <title>How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327302#M96693</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please&amp;nbsp;let me know how to&amp;nbsp;create the hash&amp;nbsp; authentication using Talend components to fetch data from API. Below is the steps to follow.. I am able to decode the key with Base 64 using t Java component.. but stuck with step 2 mentioned below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class="para"&gt;Decode the API key’s secret from Base64 to raw bytes. - I am able to do this using tJava component.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="para"&gt;Create the hash using HMAC SHA-256 over the canonical request with the decoded API key secret.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="para"&gt;Encode the hash with Base64&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327302#M96693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327303#M96694</link>
      <description>&lt;P&gt;Hi Ramya,&lt;/P&gt; 
&lt;P&gt;I'd like to help, but this really isn't a Talend question, it is a Java question. I'd have to Google it myself and I am a little snowed at the moment. If I knew the answer off the top of my head, I would happily help.&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 11:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327303#M96694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-13T11:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327304#M96695</link>
      <description>I am not seeing the Solution text here. please explain how you could resolve this? Thx.</description>
      <pubDate>Tue, 27 Mar 2018 02:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327304#M96695</guid>
      <dc:creator>venkat5121</dc:creator>
      <dc:date>2018-03-27T02:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327305#M96696</link>
      <description>&lt;P&gt;Sorry the content is missing&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006yscrAAA"&gt;@venkat5121&lt;/A&gt;, I certainly haven't removed it. I've contacted the community manager about the content going missing so hopefully it will reappear very soon. Can you explain your problem and I maybe able to point you to a solution which is specific to your issue&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 09:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327305#M96696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-27T09:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327306#M96697</link>
      <description>&lt;P&gt;I am trying to bring data from an API call.&lt;/P&gt;
&lt;P&gt;I have below details&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;URL&amp;nbsp;&lt;/LI&gt;
 &lt;LI&gt;authorization details (it is not straight forward,&amp;nbsp;it is using some coding to derive this HMAC SHA256 signature digest)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I don't know if I can use tRESTClient or tJava or any other component to establish this call and retrieve those data files.&lt;/P&gt;
&lt;P&gt;And even if there is one, is there any specific syntax, order or parameters to follow to enter those java codes in configuring such components?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 20:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327306#M96697</guid>
      <dc:creator>venkat5121</dc:creator>
      <dc:date>2018-03-27T20:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327307#M96698</link>
      <description>&lt;P&gt;OK, hopefully my original post can be found because I think I went into a bit of detail with it. But what you are going to need to do is create a Routine to do this. You can find an example of how to do this in code here (&lt;A href="https://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#java" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#java&lt;/A&gt;). You will be able to submit your call using the tRestClient, but the REST service specification will need to be followed closely in order to do this. There is seldom a generic way of working with web services, so I can't tell you how to do this from the brief description you have given. This sort of thing usually takes me a while reading the spec and then a few attempts at different solutions before I get it right.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 21:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327307#M96698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-27T21:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327308#M96699</link>
      <description>&lt;P&gt;Thanks for quick reply.&lt;/P&gt;
&lt;P&gt;if you don't overwhelm, here is the complete&amp;nbsp;&lt;A href="https://instructure.jiveon.com/docs/DOC-5553" target="_blank" rel="nofollow noopener noreferrer"&gt;knowledge&lt;/A&gt;&amp;nbsp;about it.&lt;/P&gt;
&lt;P&gt;I am not a java person and this information is going very very slow to me.&lt;/P&gt;
&lt;P&gt;with whatever I understood, I configured the tRestClient as below:&lt;/P&gt;
&lt;P&gt;Basic Settings&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;URL: "&lt;A href="https://portal.inshosteddata.com" target="_blank" rel="nofollow noopener noreferrer"&gt;https://portal.inshosteddata.com&lt;/A&gt;"&lt;/LI&gt;
 &lt;LI&gt;Relative Path: "/api/account/self/dump"&lt;/LI&gt;
 &lt;LI&gt;HTTP Method: GET&lt;/LI&gt;
 &lt;LI&gt;Accept Type: JSON&lt;/LI&gt;
 &lt;LI&gt;&lt;EM&gt;Rest all defaults&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Now wondering what should I configure within&amp;nbsp;Advanced Settings -&amp;gt; HTTP Headers&lt;/P&gt;
&lt;P&gt;how should i give those 8 parameters and make this component understand to convert it to HMAC_SHA256 hash message.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 22:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327308#M96699</guid>
      <dc:creator>venkat5121</dc:creator>
      <dc:date>2018-03-27T22:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327309#M96700</link>
      <description>&lt;P&gt;Sorry for the inconvenience &lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006yscrAAA"&gt;@venkat5121&lt;/A&gt;, we're looking into the issue, but so far I couldn't figure out where your message is gone&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;. Not in the spam quarantine. I'm reporting this to Lithium support.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Elisa&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 21:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327309#M96700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-29T21:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Set Up HMAC SHA256 Authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327310#M96701</link>
      <description>&lt;P&gt;I don't suppose your original post ever surfaced, did it? I'm trying to connect to a RESTful API using what looks like a similar authentication process, but the API documentation provides the following Java code&amp;nbsp;to generate the signature from a combination of the query parameters portion of the URL and my private key:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;private static string GetSignature(string args, string privatekey) {
    var encoding = new System.Text.ASCIIEncoding();
    byte[ ] key = encoding.GetBytes(privatekey);
    var myhmacsha256 = new HMACSHA256(key);
    byte[ ] hashValue = myhmacsha256.ComputeHash(encoding.GetBytes(args)); 
    string hmac64 = Convert.ToBase64String(hashValue); 
    myhmacsha256.Clear();
    return hmac64; 
    }&lt;/PRE&gt; 
&lt;P&gt;The trouble I'm having is that I don't know how to set up this function in OpenStudio, or how to call it when specifying the "api-auth-signature" parameter for my tRestClient&amp;nbsp;component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What am I missing?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm new here, obviously. I don't know if it shows... &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 23:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Set-Up-HMAC-SHA256-Authentication/m-p/2327310#M96701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T23:32:57Z</dc:date>
    </item>
  </channel>
</rss>

