<?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: oAuth Signature - Invalid Signature in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oAuth-Signature-Invalid-Signature/m-p/472993#M4828</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/81829"&gt;@amitbanwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What version of Visual Basic are you using? I have a feeling this is an issue on the VB side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft had this issue in 2018, and I am wondering if you upgrade VB, this might not occur.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Oct 2019 17:05:40 GMT</pubDate>
    <dc:creator>rkapoor</dc:creator>
    <dc:date>2019-10-06T17:05:40Z</dc:date>
    <item>
      <title>oAuth Signature - Invalid Signature</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oAuth-Signature-Invalid-Signature/m-p/472968#M4826</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect to Alteryx API via visual basic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing issues in creating oAuth Signature. It giving me an error - invalid signature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below the code being used to generate the signature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function CreateNewSignature(strUrl As String, getpost As String, strSecret As String, Nonce As String, Time As String, strKey As String)&lt;BR /&gt;'''''Each call to the server need a signature. The signature uses a secret to encode a number of combined fields. The secret is not passed to the server. The server&lt;BR /&gt;'''''already has the secret and uses it to decode the combined fields to verify your identity. This function is called by SetupAlteryxUrl.&lt;BR /&gt;dim strBaseString&lt;BR /&gt;strBaseString = HttpUtility.UrlEncode(strUrl) &amp;amp; _&lt;BR /&gt;"&amp;amp;oauth_consumer_key%3D" &amp;amp; strKey &amp;amp; _&lt;BR /&gt;"%26oauth_nonce%3D" &amp;amp; Nonce &amp;amp; _&lt;BR /&gt;"%26oauth_signature_method%3DHMAC-SHA1" &amp;amp; _&lt;BR /&gt;"%26oauth_timestamp%3D" &amp;amp; Time &amp;amp; _&lt;BR /&gt;"%26oauth_version%3D1.0"&lt;/P&gt;&lt;P&gt;CreateNewSignature = Base64_HMACSHA1_1(UCase(getpost) &amp;amp; "&amp;amp;" &amp;amp; strBaseString, strSecret &amp;amp; "&amp;amp;")&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Public Function Base64_HMACSHA1_1(ByVal sTextToHash As String, ByVal sSharedSecretKey As String)&lt;BR /&gt;'''''This actually generates the signature. It's called by the function CreateNewSignature.&lt;/P&gt;&lt;P&gt;'Using this base string, we then encrypt the data using a composite of the secret keys and the HMAC-SHA1 algorithm.&lt;BR /&gt;Dim compositeKey As String = Uri.EscapeDataString(sSharedSecretKey)&lt;BR /&gt;Dim oauth_signature As String&lt;/P&gt;&lt;P&gt;Dim hasher As HMACSHA1 = New HMACSHA1(ASCIIEncoding.ASCII.GetBytes(compositeKey))&lt;BR /&gt;Using hasher&lt;BR /&gt;oauth_signature = Convert.ToBase64String(hasher.ComputeHash(ASCIIEncoding.ASCII.GetBytes(sTextToHash)))&lt;BR /&gt;End Using&lt;/P&gt;&lt;P&gt;Base64_HMACSHA1_1= oauth_signature&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly assist with your input.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2019 13:00:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oAuth-Signature-Invalid-Signature/m-p/472968#M4826</guid>
      <dc:creator>amitbanwar</dc:creator>
      <dc:date>2019-10-06T13:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: oAuth Signature - Invalid Signature</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oAuth-Signature-Invalid-Signature/m-p/472993#M4828</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/81829"&gt;@amitbanwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What version of Visual Basic are you using? I have a feeling this is an issue on the VB side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft had this issue in 2018, and I am wondering if you upgrade VB, this might not occur.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2019 17:05:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oAuth-Signature-Invalid-Signature/m-p/472993#M4828</guid>
      <dc:creator>rkapoor</dc:creator>
      <dc:date>2019-10-06T17:05:40Z</dc:date>
    </item>
  </channel>
</rss>

