Ruby on Rails - omniauth in ruby on rails- ruby on rails tutorial - rails guides - rails tutorial - ruby rails
Omniauth in Ruby on Rails
First choose your auth strategy and add it to your Gemfile
You can add this to your rails middleware like so:
By default, OmniAuth will add /auth/:provider to your routes and you can start by using these paths. By default, if there is a failure, omniauth will redirect to /auth/failure