julianlam / nodebb-plugin-sso-twitter

NodeBB Plugin that allows users to login/register via their Twitter account.
BSD 2-Clause "Simplified" License
9 stars 8 forks source link

Desktop applications only support the oauth_callback value 'oob' #7

Closed a5mith closed 9 years ago

a5mith commented 9 years ago

Had the log open when doing something else, and this was in there along with some other things...

Error: Desktop applications only support the oauth_callback value 'oob'
at Strategy.parseErrorResponse (/home/a_5mith/35hz/node_modules/nodebb-plugin-sso-twitter/node_modules/passport-twitter/lib/strategy.js:178:10)
at Strategy.OAuthStrategy._createOAuthError (/home/a_5mith/35hz/node_modules/nodebb-plugin-sso-twitter/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:349:16)
at /home/a_5mith/35hz/node_modules/nodebb-plugin-sso-twitter/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:218:41
at /home/a_5mith/35hz/node_modules/nodebb-plugin-sso-twitter/node_modules/passport-twitter/node_modules/passport-oauth1/node_modules/oauth/lib/oauth.js:543:17
at passBackControl (/home/a_5mith/35hz/node_modules/nodebb-plugin-sso-twitter/node_modules/passport-twitter/node_modules/passport-oauth1/node_modules/oauth/lib/oauth.js:397:13)
at IncomingMessage.<anonymous> (/home/a_5mith/35hz/node_modules/nodebb-plugin-sso-twitter/node_modules/passport-twitter/node_modules/passport-oauth1/node_modules/oauth/lib/oauth.js:409:9)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:929:16
at process._tickDomainCallback (node.js:463:13)
a5mith commented 9 years ago

Updated stack trace as it was missing text from my attempt at a copy paste. :laughing:

ghost commented 9 years ago

Also received this error.

a5mith commented 9 years ago

Go to your Twitter dev account and enter your url into the callback field. Think that was how I fixed it.

julianlam commented 9 years ago

Suggestions as to improving the documentation so this doesn't happen again? On 21 Nov 2014 23:35, "Aaron Smith" notifications@github.com wrote:

Go to your Twitter dev account and enter your url into the callback field. Think that was how I fixed it.

— Reply to this email directly or view it on GitHub https://github.com/julianlam/nodebb-plugin-sso-twitter/issues/7#issuecomment-64068926 .

a5mith commented 9 years ago

readme and a small note in the tpl for admin? Can do a PR later on when I've watched a bit of Motorsport and had a coffee. :laughing:

mashihua commented 9 years ago

Go to Twitter's app setting at Callback URL field entry following: http://example.com/auth/twitter/callback