oauth-subscriber
oauth-subscriber copied to clipboard
Can I use OAuth1 with hmac-sha256 signature method?
I see the example use rsa signature method. I need to know if I can use the hmac-sha256 signature method to create the OAuth1.
Thank you
HMAC-SHA256 is available since 0.5 release. By default it takes HMAC-SHA1, this can be overwritten by the following settings:
$middleware = new Oauth1([
'signature_method' => Oauth1::SIGNATURE_METHOD_HMACSHA256
]);
$stack->push($middleware);
How do I verify the signature method. I've changed to Oauth1::SIGNATURE_METHOD_HMACSHA256, but I still get the error when I send request to other systems. :(
Which exact error message do you get?