Closed napster3000 closed 10 years ago
Hello,
This is not a problem with omniauth-putio. This is a problem with your put.io configuration or your omniauth configuration, depending on how you want to look at it.
By default Omniauth callbacks have the form /auth/:service/callback
. Your app is telling the put.io API that the callback path is /auth/putio/callback
, but the put.io API expects /putioservice/callback
, hence the mismatch.
In your put.io settings, set http://0.0.0.0:3000/auth/putio/callback as the callback. Make sure you change your config/routes.rb
so that the /auth/putio/callback
route is connected to the correct controller.
That should make it work.
Put.io Settings CallBack url http://0.0.0.0:3000/putioservice/callback
If I go to: http://localhost:3000/auth/putio
I'm redirected to: http://0.0.0.0:3000/putioservice/callback?error=redirect_uri_mismatch
with a null value for request.env['omniauth.auth']
config/initializer/omniauth.rb