oauth-subscriber icon indicating copy to clipboard operation
oauth-subscriber copied to clipboard

Can I use OAuth1 with hmac-sha256 signature method?

Open natthanank opened this issue 3 years ago • 3 comments

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

natthanank avatar Apr 18 '21 10:04 natthanank

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);

eddiejan avatar Jun 22 '21 10:06 eddiejan

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. :(

natthanank avatar Aug 04 '21 09:08 natthanank

Which exact error message do you get?

cweiske avatar Sep 14 '21 08:09 cweiske