diff --git a/Gemfile b/Gemfile index b44e3b5..8e3f2a4 100644 --- a/Gemfile +++ b/Gemfile @@ -69,6 +69,9 @@ gem 'http_accept_language' # External logins with OmniAuth gem 'omniauth' +# Colab integration for Omniauth +gem 'omniauth-remote-user' + group :test do # Easier test writing gem "shoulda-matchers", '~> 2.8.0' diff --git a/Gemfile.lock b/Gemfile.lock index fcef42c..55b6582 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -208,6 +208,8 @@ GEM omniauth (1.2.2) hashie (>= 1.2, < 4) rack (~> 1.0) + omniauth-remote-user (0.0.5) + omniauth (~> 1.0) orm_adapter (0.5.0) pg (0.18.1) poltergeist (1.6.0) @@ -357,6 +359,7 @@ DEPENDENCIES konacha (~> 3.3.0) mocha omniauth + omniauth-remote-user pg (~> 0.18.1) poltergeist (~> 1.6.0) rails (= 4.2.1) diff --git a/app/models/user.rb b/app/models/user.rb index 3c662c9..51e6e90 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -3,7 +3,7 @@ class User < ActiveRecord::Base # :token_authenticatable, :confirmable, # :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, - :omniauthable, omniauth_providers: [] + :omniauthable, omniauth_providers: [:RemoteUser] validates :name, presence: true validates :email, presence: true, uniqueness: true -- libgit2 0.21.2