Sha256: d0cdaa700f32d4c7ecf0414036bf5f37060e35fdf58b0f3b715fea57fe5a47c0
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
class <%= @scope_prefix %>OmniauthCallbacksController < Devise::OmniauthCallbacksController # You should configure your model like this: # devise :omniauthable, omniauth_providers: [:twitter] # You should also create an action method in this controller like this: # def twitter # end # More info at: # https://github.com/plataformatec/devise#omniauth # GET|POST /resource/auth/twitter # def passthru # super # end # GET|POST /users/auth/twitter/callback # def failure # super # end # protected # The path used when omniauth fails # def after_omniauth_failure_path_for(scope) # super(scope) # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-3.4.1 | lib/generators/templates/controllers/omniauth_callbacks_controller.rb |
devise-3.4.0 | lib/generators/templates/controllers/omniauth_callbacks_controller.rb |