Added Instagram login method

This commit is contained in:
Ubuntu
2016-02-25 01:21:59 +00:00
committed by Mark Biegel
parent 15ce3b2f49
commit 5c603bf8ec
12 changed files with 94 additions and 2 deletions

View File

@ -10,7 +10,8 @@ class Users::OmniauthCallbacksController < ApplicationController
Auth::GoogleOAuth2Authenticator.new,
Auth::OpenIdAuthenticator.new("yahoo", "https://me.yahoo.com", trusted: true),
Auth::GithubAuthenticator.new,
Auth::TwitterAuthenticator.new
Auth::TwitterAuthenticator.new,
Auth::InstagramAuthenticator.new
]
skip_before_filter :redirect_to_login_if_required
@ -18,7 +19,7 @@ class Users::OmniauthCallbacksController < ApplicationController
layout false
def self.types
@types ||= Enum.new(:facebook, :twitter, :google, :yahoo, :github, :persona, :cas)
@types ||= Enum.new(:facebook, :instagram, :twitter, :google, :yahoo, :github, :persona, :cas)
end
# need to be able to call this