themattharris / tmhOAuth

An OAuth 1.0A library written in PHP
Apache License 2.0
855 stars 335 forks source link

Updated tmhOAuth.php to support RSA-SHA1 Signing. #179

Open moacode opened 10 years ago

moacode commented 10 years ago

I chose this library to handle OAuth authentication for a Xero Integration project, which worked great until using it for 'Private' applications (http://developer.xero.com/documentation/getting-started/private-applications/). Xero uses HMAC-SHA1 for public/partner applications and the RSA-SHA1 signature method for Private applications, which tmhOAuth doesn't support.

As Xero usage is growing rapidly, it'd be nice to incorporate these features into the main library.

moacode commented 9 years ago

Hi Matt, could you please review these changes? Thanks.

themattharris commented 9 years ago

i was looking at this. can you also add a test to https://github.com/themattharris/tmhOAuthTest that i can run against this code. once i can run the tests i'll work on integration.