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

Reverse auth credentials are invalid thrown on oauth/access_token call #691

Closed
krupjanski opened this issue Jul 14, 2018 · 3 comments
Closed

Comments

@krupjanski
Copy link

Converting the request token via oauth/access_token endpoint causes HTTP/1.1 401 Authorization Required with message: Reverse auth credentials are invalid

Method call
$access_token = $connection->oauth("oauth/access_token", ["oauth_verifier" => "5EMzHJRHV3DyHGoCuoiNOzgitN03nnXl"]);

Generated authorization header:
Authorization: OAuth oauth_version="1.0", oauth_nonce="7c300ecc81c9c9248eb5ea91dca9bbce", oauth_timestamp="1531527606", oauth_consumer_key="27oeUj7tbBmWQBLn38lfACP5i", oauth_verifier="5EMzHJRHV3DyHGoCuoiNOzgitN03nnXl", oauth_signature_method="HMAC-SHA1", oauth_signature="DzPfCjZlKDt4o3T9oSQncALohOU%3D"

@abraham
Copy link
Owner

abraham commented Jul 15, 2018

I'd reverse auth something you expect would work? Last I checked Twitter had removed the documentation.

@jasonsarino
Copy link

Hello I got this error in:
$access_token = $connection->oauth("oauth/access_token", ["oauth_verifier" => trim($oauth_verifier)]);

Error message:

Fatal error: Uncaught exception 'Abraham\TwitterOAuth\TwitterOAuthException' with message 'Reverse auth credentials are invalid' in X:\xampp\htdocs\globalsportsfeed\vendor\abraham\twitteroauth\src\TwitterOAuth.php:168 Stack trace: #0 X:\xampp\htdocs\globalsportsfeed\callback.php(16): Abraham\TwitterOAuth\TwitterOAuth->oauth('oauth/access_to...', Array) #1 {main} thrown in X:\xampp\htdocs\globalsportsfeed\vendor\abraham\twitteroauth\src\TwitterOAuth.php on line 168

PLEASE HELP!!!

@abraham
Copy link
Owner

abraham commented Sep 26, 2018

Are you trying to use reverse auth? Or are you trying to use standard three-legged oauth and mistakenly getting this error?

Maybe something in here well help: https://twittercommunity.com/t/reverse-auth-credentials-are-invalid-3-legged-authorization/110970/8

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

No branches or pull requests

3 participants