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

Problems with Yahoo #33

Closed
JoeMcMahon87 opened this issue Sep 24, 2015 · 4 comments
Closed

Problems with Yahoo #33

JoeMcMahon87 opened this issue Sep 24, 2015 · 4 comments

Comments

@JoeMcMahon87
Copy link

I'm using Node and Express 3 and tried the following:

var Grant = require('grant-express')
  , grant = new Grant({
"server": { 
  "protocol" : "http",
  "host" : "[my host]:[my port]"
},
"yahoo": {
  "key": "[OAUTH CONSUMER KEY]",
  "secret" : "[OAUTH SECRET]",
  "callback" : "[host and path for callback]"
}
});

var app = express()
app.use(express.logger())
app.use(express.cookieParser())
app.use(express.cookieSession({secret:'very secret'}))
// mount grant
app.use(grant)

When I hit the [host]/connect/yahoo URL, I get the following:

{
  "error": {
    "oauth_problem": "consumer_key_unknown"
  }
}

When I try the same consumer key and secret on the OAuth Playground app on your Heroku instance, with the Yahoo provider, it works fine.

@simov
Copy link
Owner

simov commented Sep 24, 2015

That's very weird. Can you try with the Express example? Also the callback in your configuration should be something like /handle_yahoo_callback check out the example code.

@JoeMcMahon87
Copy link
Author

So the express example works for Twitter (didn't try Facebook). I added a config entry for Yahoo with a fresh set of keys/secrets and a handler in app.js and I get the same error. I am using the callback as /handle_yahoo_callback

@simov
Copy link
Owner

simov commented Sep 24, 2015

Double check if you copy/pasted your consumer_key correctly from Yahoo. That's really weird I can't figure out what the problem might be in case it works with the showcase app. Search in Google for something like yahoo oauth consumer_key_unknown it might be something on their end.

@simov
Copy link
Owner

simov commented Sep 30, 2015

@JoeMcMahon87 I'm closing this issue for now. Let me know if you have any other issues.

@simov simov closed this as completed Sep 30, 2015
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