Note that there are some explanatory texts on larger screens.

plurals
  1. POInvalid OAuth Signature returned while using Yammer Api
    primarykey
    data
    text
    <p>I am trying to write a small webapp that pulls data from Yammer. I have to go through Yammer's OAuth bridge to access their data. I tried using the <a href="http://oauth.googlecode.com/svn/code/php/" rel="nofollow noreferrer">Oauth php library</a> and do the 3 way handshake. But at the last step, I get an error stating I have an invalid OAuth Signature. </p> <p>Here are the series of steps:</p> <ol> <li><p>The first part involves getting the request Token URL and these are the query parameters that I pass.</p> <pre><code> [oauth_version] =&gt; 1.0 [oauth_nonce] =&gt; 4e495b6a5864f5a0a51fecbca9bf3c4b [oauth_timestamp] =&gt; 1256105827 [oauth_consumer_key] =&gt; my_consumer_key [oauth_signature_method] =&gt; HMAC-SHA1 [oauth_signature] =&gt; FML2eacPNH6HIGxJXnhwQUHPeOY= </code></pre></li> <li><p>Once this step is complete, I get the request Token as follows:</p> <p>[oauth_token] => 6aMcbRK5wMqHgZQsdfsd [oauth_token_secret] => ro8AJxZ67sUDoiOTk8sl4V3js0uyof1uPJVB14asdfs [oauth_callback_confirmed] => true</p></li> <li><p>I then try to authorize the given token and token secret by passing the parameters to the authorize url.It takes me to Yammer's authentication page where I have allow my app to talk to Yammer. </p></li> <li><p>Yammer then gives me a 4 digit code that I have to put back into my application which then tries to acquire the permanent access token. I pass the following information to the access token URL:</p> <pre><code> [oauth_version] =&gt; 1.0 [oauth_nonce] =&gt; 52b22495ecd9eba277c1ce6b97b00fdc [oauth_timestamp] =&gt; 1256106815 [oauth_consumer_key] =&gt; myconsumerkey [callback_token] =&gt; 61A7 [oauth_token] =&gt; 6aMcbRK5wMqHgZQsdfsd [oauth_token_secret] =&gt; ro8AJxZ67sUDoiOTk8sl4V3js0uyof1uPJVB14asdfs [oauth_callback_confirmed] =&gt; true [oauth_signature_method] =&gt; HMAC-SHA1 [oauth_signature] =&gt; V9YcMDq2rP7OiZTK1k5kb/otMzA= </code></pre></li> <li><p>Here I am supposed to receive the Oauth Permanent access token, but instead I get a <strong>Invalid Oauth signature</strong>. I dont know what I am doing wrong. I use the same signaures to sign the request. Should I sign the request using the new token and secret? I tried that as well but to no avail. I even tried implementing this in java using <a href="http://code.google.com/p/oauth-signpost/" rel="nofollow noreferrer">signpost library</a> and got stuck at the exact same place. Help Help!!</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload