dstroot / skeleton

Node Express MongoDB Bootstrap Passport... all rolled up into juicy goodness
skeleton-app.jit.su
MIT License
370 stars 47 forks source link

Google, facebook and Github authentication problem. #12

Closed cmpsoares91 closed 10 years ago

cmpsoares91 commented 10 years ago

Hi Dan, I followed the steps as described at the README section on how to configure authentication, twitter worked fine but the other three didn't. I'm getting a URI mismatch error 400.

It's the same error at the three of them.

What can cause this?

cmpsoares91 commented 10 years ago

I've been testing and it seems that login and linking callback links are different do I have to create two api keys?

cmpsoares91 commented 10 years ago

It's definitely a bug in the code linking and authentication should work with same callback URI but they are working separately so or I have two separate sets of keys or I get errors...

dstroot commented 10 years ago

Works with the same key for me - need to investigate further...

cmpsoares91 commented 10 years ago

I've been investigating. What happens is that signup and linking have different Callback URIs and these have to be identified at the OAuth providers. I fixed the problem with Google and Facebook by adding the other callback links to their settings. But I can't get Githbub fixed.

If I'm not in error, with Github if you can signup with a certain key you can't link, and the other way around.

As Github's support mentioned:

Hi Carlos,

Providing multiple callback URIs is not possible currently. This is already on our radar, but I can't promise an ETA for when this might be available. We appreciate that you got in touch and expressed interest in this, though.

I hope this answers your question and please let us know if there's anything else.

Cheers, Ivan

Well I don't know if it's possible or not, but as most OAuth providers such as Google, Facebook and Twitter it's possible to add multiple authorization callback URIs. I was trying to do the same here with similar syntax, comma, semicolon, space and newline separated, but non of them works. Is there a specific syntax or is it just not possible?

My account details:

  • username: cmpsoares91
  • application: QuantBull Project
  • Client ID: xxxxxxxxxxxxxxxxxxxxxx
cmpsoares91 commented 10 years ago

Well I figured out how to make this one work as well. Not ideal but can be added to instructions. Seems like Github works with only one URI or if you leave it blank it accept every callback URI...