AnsweredAssumed Answered

【PHP】Build oauth_signature failed

Question asked by 皇登攀 Huang Dengpan on Oct 28, 2016
Latest reply on Nov 9, 2016 by SethBattis@stmarksschool.org

Hi, all

Thank you for you see this question.


I am writing a LTI program.

The assignment post some data to my program. I see some parameters include oauth_cosumer_key, oauth_nonce, oauth_signature_method, oauth_version, oauth_timestamp, etc....

I am going to build oauth_signature, but failed.

 

Here is the codes:

Any other params do I need?

$oauth_signature= base64_encode(hash_hmac('sha1',$string,"456",TRUE));
//"456" is the secret I set. I have saved it into the share secret box.

 

 

$oauth_signature doesn't matches with $_POST['oauth_signature']

 

Hope you can help me on this problem.

Best wishes !

中国上海发来请求!

Outcomes