Sha256: 8dc929ea28e6c73a5af04ff183db11f59fef852d5df08395f7638c0ccd0e6ece

Contents?: true

Size: 548 Bytes

Versions: 11

Compression:

Stored size: 548 Bytes

Contents

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'"
end

__END__

name: OmniAuth
description: "A basic setup of OmniAuth with a SessionsController to handle the request and callback phases."
author: mbleigh

exclusive: authentication
category: authentication

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rails_wizard-0.1.5 recipes/omniauth.rb
rails3_devise_wizard-0.2.5 recipes/omniauth.rb
rails3_devise_wizard-0.2.4 recipes/omniauth.rb
rails3_devise_wizard-0.2.3 recipes/omniauth.rb
rails3_devise_wizard-0.2.2 recipes/omniauth.rb
rails3_devise_wizard-0.2.1 recipes/omniauth.rb
rails3_devise_wizard-0.2 recipes/omniauth.rb
rails_wizard-0.1.4 recipes/omniauth.rb
rails_wizard-0.1.3 recipes/omniauth.rb
rails_wizard-0.1.2 recipes/omniauth.rb
rails_wizard-0.1.0 recipes/omniauth.rb