masterkain / omniauth-twitchtv

Twitch.TV OAuth2 Strategy for OmniAuth
https://audiobox.fm
8 stars 6 forks source link

wrong callback_uri #6

Closed AntoineLevesque closed 8 years ago

AntoineLevesque commented 8 years ago

when using it with devise, my callback url is this in my routes :

http://localhost:3000/users/auth/twitchtv/callback

I set it correctly on the twitch website, but I get this when I try to authenticate :

I, [2016-08-27T12:12:05.655744 #36066] INFO -- omniauth: (twitchtv) Callback phase initiated. E, [2016-08-27T12:12:07.105747 #36066] ERROR -- omniauth: (twitchtv) Authentication failure! invalid_credentials: OAuth2::Error, Bad Request: {"error":"Bad Request","status":400,"message":"Parameter redirect_uri does not match registered URI"} Processing by Users::OmniauthCallbacksController#failure as HTML

you can try to replicate by cloning my project : https://github.com/AntoineLevesque/plebsunleashed/tree/twitchauth

DEfusion commented 7 years ago

Why did you close this issue @AntoineLevesque? I'm getting the exact same issue I have triple checked and the redirect_uri that is being sent is identical to the settings in twitch.

DEfusion commented 7 years ago

I guess you did what I did, https://github.com/WebTheoryLLC/omniauth-twitch works fine without this error.