I get the following error with Meteor (version 0.6.6.3) and clicking on the sign in button for Twitter.
I2038-06:13:28.670(-8)? Exception while invoking method 'login' Error: Failed to send OAuth1 request to https://api.twitter.com/oauth/request_token. failed [401] Failed to validate oauth signature and token
I2038-06:13:28.673(-8)? at OAuth1Binding._call (packages/oauth1/oauth1_binding.js:143)
I2038-06:13:28.674(-8)? at OAuth1Binding.prepareRequestToken (packages/oauth1/oauth1_binding.js:27)
I2038-06:13:28.675(-8)? at Oauth._requestHandlers.(anonymous function) (packages/oauth1/oauth1_server.js:21)
I2038-06:13:28.676(-8)? at middleware (packages/oauth/oauth_server.js:105)
I2038-06:13:28.677(-8)? at packages/oauth/oauth_server.js:78
Anybody has an idea on how to solve this issue?
Thanks
I had the same issue caused by manually removing and inserting the loginServiceConfiguration incorrectly. If you're not using the configuration tool, make sure you're inserting a consumerKey
rather than clientId
.
Accounts.loginServiceConfiguration.remove({
service: "twitter"
});
Accounts.loginServiceConfiguration.insert({
service: "twitter",
consumerKey: "...",
secret: "..."
});
Ok so after poking around for a while I finally made it work. Here's the workaround I found that could hopefully help others who get a similar error.
Setup
Solution
http://192.168.2.100:3000/_oauth/twitter?close
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With