Sha256: ac9b42247dfebd22feb88e2ba2c387a60a4286c368b2f02a182147fe98ba823c

Contents?: true

Size: 686 Bytes

Versions: 2

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

class <%= @scope_prefix %>OmniauthCallbacksController < Kingsman::OmniauthCallbacksController
  # You should configure your model like this:
  # kingsman :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/heartcombo/kingsman#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
kingsman-0.1.1 lib/generators/templates/controllers/omniauth_callbacks_controller.rb
kingsman-0.1.0 lib/generators/templates/controllers/omniauth_callbacks_controller.rb