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

Twitter could not authenticate temporary credentials #100

Closed
alvirbismonte opened this issue Apr 6, 2020 · 2 comments
Closed

Twitter could not authenticate temporary credentials #100

alvirbismonte opened this issue Apr 6, 2020 · 2 comments

Comments

@alvirbismonte
Copy link

alvirbismonte commented Apr 6, 2020

I've used the twitter example in the repo and getting this error. The error also comes from this line.

I am able to get temporary credentials and able to get oauth token, but when I do use the returned token to fetch user details, I'm unable to fetch it thus the error.

League\OAuth1\Client\Credentials\CredentialsException: Received HTTP status code [401] with message "{"errors":[{"code":32,"message":"Could not authenticate you."}]}" when getting temporary credentials. in /vendor/league/oauth1-client/src/Client/Server/Server.php:418

I read an issue like this and they are referring to setting isSecure: false but I'm unable to find this in the package. Could you please help me. Thanks

@alvirbismonte alvirbismonte changed the title Could not authenticate temporary credentials Twitter could not authenticate temporary credentials Apr 7, 2020
@alvirbismonte
Copy link
Author

It turns out that I did not followed the 3-legged Oauth by twitter which is also indicated in the sample from the library.

@pushparajbhatta
Copy link

I had been getting the same error at the redirection controller while using oauth 1

Received HTTP status code [401] with message "{"errors":[{"code":32,"message":"Could not authenticate you."}]}" when getting temporary credentials.

I found out that I had been using oauth 2 client id and client secret on my configuration. Please make sure you are using the credentials (API Key and Secret) from "Consumer Keys" on twitter app settings. The API Key and Secret under "Consumer Keys" are client id and client secret respectively for oauth 1.

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

2 participants