-
Notifications
You must be signed in to change notification settings - Fork 333
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
Failed to validate oauth signature and token #59
Comments
hey, if i'm reading your code correctly you're making a request to oauth/request_token but signing it with the user_token and secret. the thing is, the request_token phase is the beginning of the oauth process for which there must not be a user_token and user_secret. if you have a user_token and user_secret the oauth authentication process is complete and you don't need to do it again - at least not for that particular user. if you want to authenticate as a different user you would need to remove the user_token and user_secret from the $tmhOAuth object and go through the request_token -> authorize -> access_token process again. let me know if that fixes it for you. |
Thanks for the prompt reply, Matt. |
can you do a var_dump($tmhOAuth) at the end and share it. |
You know what the second time around I actually got an error message related to the fact that my callback on the App Details page was empty. I added a placeholder and everything just worked. Thanks again for your support. Cheers! |
excellent - glad you got it worked out. |
Yeah thanks really appreciate your support I'm impressed at how promptly you answered my question. |
Hi Matt,
I've been playing with your library and for some reason I got stuck when attempting to authenticate. I can actually do a status update and I can even get a list of friends but unfortunately I cannot seem to be able to get a request_token. I keep getting a 401 Unauthorized with "Failed to validate oauth signature and token".
This is what I'm trying to do. Pretty straight forward:
I've verified the credentials, it works, like I said I can post a tweet but I can't get a request token back. I've verified that the time is in sync with GMT and I've even tried your utility which tries to auto fix the time issue but I'm still getting the same error.
Any idea what's going on?
Thanks
The text was updated successfully, but these errors were encountered: