class Foyer::OmniauthCallbacksController
Public Instance Methods
callback()
click to toggle source
# File lib/foyer/omniauth_callbacks_controller.rb, line 13 def callback fail NotImplementedError end
failure()
click to toggle source
# File lib/foyer/omniauth_callbacks_controller.rb, line 9 def failure fail NotImplementedError end
passthru()
click to toggle source
# File lib/foyer/omniauth_callbacks_controller.rb, line 5 def passthru head :not_found end
Protected Instance Methods
after_sign_in_path()
click to toggle source
# File lib/foyer/omniauth_callbacks_controller.rb, line 19 def after_sign_in_path return origin if origin.to_s.match(%r{^\/}) || origin.to_s.match(%r{^#{request.scheme}://#{request.host}}) root_path end
Private Instance Methods
auth_hash()
click to toggle source
# File lib/foyer/omniauth_callbacks_controller.rb, line 30 def auth_hash request.env['omniauth.auth'] end
origin()
click to toggle source
# File lib/foyer/omniauth_callbacks_controller.rb, line 26 def origin request.env['omniauth.origin'] end