Invalid OAuth Signature Returned Using Yammer Api

I am trying to write a small webapp that retrieves data from Yammer. I need to go through the Yammer OAuth bridge to access their data. I tried using the Oauth php library and doing a three-way handshake. But in the last step, I get an error: I have an invalid OAuth signature.

Here is the sequence of steps:

  • The first part involves getting the URL of the request token, and these are the request parameters that I pass.

        [oauth_version] => 1.0
        [oauth_nonce] => 4e495b6a5864f5a0a51fecbca9bf3c4b
        [oauth_timestamp] => 1256105827
        [oauth_consumer_key] => my_consumer_key
        [oauth_signature_method] => HMAC-SHA1
        [oauth_signature] => FML2eacPNH6HIGxJXnhwQUHPeOY=
    
  • Once this step is completed, I get the request token as follows:

    [oauth_token] => 6aMcbRK5wMqHgZQsdfsd [oauth_token_secret] => ro8AJxZ67sUDoiOTk8sl4V3js0uyof1uPJVB14asdfs [oauth_callback_confirmed] => true

  • , url.It Yammer, Yammer.

  • Yammer 4- , , . URL :

        [oauth_version] => 1.0
        [oauth_nonce] => 52b22495ecd9eba277c1ce6b97b00fdc
        [oauth_timestamp] => 1256106815
        [oauth_consumer_key] => myconsumerkey
        [callback_token] => 61A7
        [oauth_token] => 6aMcbRK5wMqHgZQsdfsd
        [oauth_token_secret] => ro8AJxZ67sUDoiOTk8sl4V3js0uyof1uPJVB14asdfs
        [oauth_callback_confirmed] => true
        [oauth_signature_method] => HMAC-SHA1
        [oauth_signature] => V9YcMDq2rP7OiZTK1k5kb/otMzA=
    
  • Oauth, Oauth. , . . , ? , . java, signpost library . !

+3
3

callback_token -, Yammer OAuth . OAuth 1.0a , oauth_verifier. , , Yammer , , .

, ​​ Yammer Development Network:

Yammer API API-. OAuth OAuth . , , , API , .

, Yammer OAuth, , . .

: python-yammer-oauth - , , Yammer .

Edit2: PLAINTEXT HMAC-SHA1? Yammer HMAC-SHA1.

0

PLAINTEXT.. " OAuth" .

, , HMAC-SHA1, API, . PLAINTEXT?

0

!

( "&" ) CONSUMER_SECRET. , ?

0

Source: https://habr.com/ru/post/1720645/


All Articles