deanpcmad / omniauth-discord

Discord OAuth2 Strategy for OmniAuth
MIT License
42 stars 28 forks source link

Authentication failure #2

Closed wimhaanstra closed 8 years ago

wimhaanstra commented 8 years ago

Same as the previous issue mentioning authentication failure.

The callback to my site is being called, but then devise/this gem throws an "Authentication failure" error.

Started GET "/users/auth/discord/callback?state=ec4dac952bb63f56e087b1e5e7f2e64d0acea387a5258ffe&code=PLQMN51XVa1kNBmVyJEcOdR2EKyg0Y" for 127.0.0.1 at 2016-07-19 07:28:28 +0200
I, [2016-07-19T07:28:28.299748 #2598]  INFO -- omniauth: (discord) Callback phase initiated.
E, [2016-07-19T07:28:28.919283 #2598] ERROR -- omniauth: (discord) Authentication failure! invalid_credentials: OAuth2::Error, : 
{"code": 0, "message": "401: Unauthorized"}
Processing by Users::OmniauthCallbacksController#failure as HTML
  Parameters: {"state"=>"ec4dac952bb63f56e087b1e5e7f2e64d0acea387a5258ffe", "code"=>"PLQMN51XVa1kNBmVyJEcOdR2EKyg0Y"}

Tried resetting my client secret, didn't help.

adaoraul commented 8 years ago

Can you please provide a sample application that reproduces the error?