class ExternalCredentialsController

Public Instance Methods

create() click to toggle source
# File lib/generators/oath/templates/app/controllers/external_credentials_controller.rb, line 2
def create
  credential = ExternalAuthentication.new(auth_hash).perform
  sign_in credential.user
  redirect_to root_path
end

Private Instance Methods

auth_hash() click to toggle source
# File lib/generators/oath/templates/app/controllers/external_credentials_controller.rb, line 10
def auth_hash
  request.env["omniauth.auth"]
end