Class: Visitors::OmniauthCallbacksController
- Inherits:
-
Devise::OmniauthCallbacksController
- Object
- Devise::OmniauthCallbacksController
- Visitors::OmniauthCallbacksController
- Defined in:
- app/controllers/visitors/omniauth_callbacks_controller.rb
Instance Method Summary collapse
-
#facebook ⇒ Object
protect_from_forgery :except => [:google, :yahoo, :open_id, :facebook].
- #failure ⇒ Object
- #google ⇒ Object
- #open_id ⇒ Object
- #passthru ⇒ Object
- #yahoo ⇒ Object
Instance Method Details
#facebook ⇒ Object
protect_from_forgery :except => [:google, :yahoo, :open_id, :facebook]
4 5 6 |
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 4 def facebook callback("Facebook", :find_for_facebook_oauth) end |
#failure ⇒ Object
24 25 26 |
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 24 def failure render :file => "#{Rails.root}/public/404", :status => 404, :layout => false end |
#google ⇒ Object
8 9 10 |
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 8 def google callback("Google") end |
#open_id ⇒ Object
16 17 18 |
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 16 def open_id callback("OpenID") end |
#passthru ⇒ Object
20 21 22 |
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 20 def passthru render :file => "#{Rails.root}/public/404", :status => 404, :layout => false end |
#yahoo ⇒ Object
12 13 14 |
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 12 def yahoo callback("Yahoo") end |