Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use OAuth1 with hmac-sha256 signature method? #89

Open
natthanank opened this issue Apr 18, 2021 · 3 comments
Open

Can I use OAuth1 with hmac-sha256 signature method? #89

natthanank opened this issue Apr 18, 2021 · 3 comments

Comments

@natthanank
Copy link

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

@eddiejan
Copy link

eddiejan commented Jun 22, 2021

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

@natthanank natthanank reopened this Aug 4, 2021
@natthanank
Copy link
Author

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

@cweiske
Copy link

cweiske commented Sep 14, 2021

Which exact error message do you get?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants