Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 548 Bytes
gem 'omniauth', '~> 0.2.0'
after_bundler do
file 'app/controllers/sessions_controller.rb', "class SessionsController < ApplicationController\n def callback\n auth # Do what you want with the auth hash!\n end\n\n def auth; request.env['omniauth.auth'] end\nend"
route "match '/auth/:provider/callback', :to => 'sessions#callback'"
name: OmniAuth
description: "A basic setup of OmniAuth with a SessionsController to handle the request and callback phases."
author: mbleigh
exclusive: authentication
category: authentication