forked from External/greenlight
Merge pull request #186 from joshua-arts/master
Fix Google authentication and update Omniauth to 1.6.1.
This commit is contained in:
commit
c5c4afe493
2
Gemfile
2
Gemfile
|
@ -62,7 +62,7 @@ end
|
|||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
||||
|
||||
gem 'omniauth', '1.3.1'
|
||||
gem 'omniauth', '1.6.1'
|
||||
gem 'omniauth-twitter', '1.2.1'
|
||||
gem 'omniauth-google-oauth2', '0.4.1'
|
||||
gem 'omniauth-ldap'
|
||||
|
|
10
Gemfile.lock
10
Gemfile.lock
|
@ -139,9 +139,9 @@ GEM
|
|||
multi_json (~> 1.3)
|
||||
multi_xml (~> 0.5)
|
||||
rack (>= 1.2, < 3)
|
||||
omniauth (1.3.1)
|
||||
hashie (>= 1.2, < 4)
|
||||
rack (>= 1.0, < 3)
|
||||
omniauth (1.6.1)
|
||||
hashie (>= 3.4.6, < 3.6.0)
|
||||
rack (>= 1.6.2, < 3)
|
||||
omniauth-google-oauth2 (0.4.1)
|
||||
jwt (~> 1.5.2)
|
||||
multi_json (~> 1.3)
|
||||
|
@ -292,7 +292,7 @@ DEPENDENCIES
|
|||
listen (~> 3.0.5)
|
||||
lograge
|
||||
mocha
|
||||
omniauth (= 1.3.1)
|
||||
omniauth (= 1.6.1)
|
||||
omniauth-google-oauth2 (= 0.4.1)
|
||||
omniauth-ldap
|
||||
omniauth-twitter (= 1.2.1)
|
||||
|
@ -317,4 +317,4 @@ RUBY VERSION
|
|||
ruby 2.4.0p0
|
||||
|
||||
BUNDLED WITH
|
||||
1.15.3
|
||||
1.15.4
|
||||
|
|
|
@ -12,7 +12,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
|||
scope: ENV['ENABLE_YOUTUBE_UPLOADING'] && ENV['ENABLE_YOUTUBE_UPLOADING'] == "true" ? ['profile', 'email', 'youtube', 'youtube.upload'] : ['profile', 'email'] ,
|
||||
access_type: 'online',
|
||||
name: 'google',
|
||||
hd: ENV['GOOGLE_OAUTH2_HD']
|
||||
hd: ENV['GOOGLE_OAUTH2_HD'].blank? ? nil : ENV['GOOGLE_OAUTH2_HD']
|
||||
provider :ldap,
|
||||
host: ENV['LDAP_SERVER'],
|
||||
port: ENV['LDAP_PORT'] || '389',
|
||||
|
|
Loading…
Reference in New Issue