Sha256: f225dbaece83afeae5f5b392b58195f60b6914e83954d8344080b77fa68e347d

Contents?: true

Size: 572 Bytes

Versions: 3

Compression:

Stored size: 572 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

# TODO watch railscasts

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey_rails_wizard-0.5.0 scrolls/omniauth.rb
ey_rails_wizard-0.4.0 scrolls/omniauth.rb
ey_rails_wizard-0.3.1 recipes/omniauth.rb