scinote-web/app/controllers/users/omniauth_callbacks_controller.rb

33 lines
744 B
Ruby
Raw Normal View History

2017-08-30 00:49:07 +08:00
module Users
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
skip_before_action :verify_authenticity_token
2016-02-12 23:52:43 +08:00
2017-08-30 00:49:07 +08:00
# You should configure your model like this:
# devise :omniauthable, omniauth_providers: [:twitter]
2016-02-12 23:52:43 +08:00
2017-08-30 00:49:07 +08:00
# You should also create an action method in this controller like this:
# def twitter
# end
2016-02-12 23:52:43 +08:00
2017-08-30 00:49:07 +08:00
# More info at:
# https://github.com/plataformatec/devise#omniauth
2016-02-12 23:52:43 +08:00
2017-08-30 00:49:07 +08:00
# GET|POST /resource/auth/twitter
# def passthru
# super
# end
2016-02-12 23:52:43 +08:00
2017-08-30 00:49:07 +08:00
# GET|POST /users/auth/twitter/callback
# def failure
# super
# end
2016-02-12 23:52:43 +08:00
2017-08-30 00:49:07 +08:00
# protected
# The path used when OmniAuth fails
# def after_omniauth_failure_path_for(scope)
# super(scope)
# end
end
2016-02-12 23:52:43 +08:00
end