summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2016-04-13 13:09:47 +0000
committerMarin Jankovski <marin@gitlab.com>2016-04-13 13:09:47 +0000
commitc74604699269a2edbbe937309cce7a4ed789cb07 (patch)
tree3dc05906df853581ffed364ae554d3aeeedcd19f /config/initializers
parentab4ea3720c084063ab83cef3aaf3a0b6adbc2a3c (diff)
parent61fc9aa87ea3752f3c7b853ab1cb102e53d392f2 (diff)
downloadgitlab-ce-c74604699269a2edbbe937309cce7a4ed789cb07.tar.gz
Merge branch 'external-omniauth-providers' into 'master'
Allow Omniauth providers to be marked as external Related to #4009 With this MR we will be able to allow the user to set which Omniauth Providers they would like to have as external. All users login in via these providers will be marked as external, even if they already had an account before. If the provider is removed form the list of external providers, the users will be marked as internal at their next login. MR for Omnibus: gitlab-org/omnibus-gitlab!727 /cc @dblessing @DouweM See merge request !3657
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/1_settings.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb
index 630b6e594a7..287f99c724d 100644
--- a/config/initializers/1_settings.rb
+++ b/config/initializers/1_settings.rb
@@ -129,6 +129,7 @@ Settings['omniauth'] ||= Settingslogic.new({})
Settings.omniauth['enabled'] = false if Settings.omniauth['enabled'].nil?
Settings.omniauth['auto_sign_in_with_provider'] = false if Settings.omniauth['auto_sign_in_with_provider'].nil?
Settings.omniauth['allow_single_sign_on'] = false if Settings.omniauth['allow_single_sign_on'].nil?
+Settings.omniauth['external_providers'] = [] if Settings.omniauth['external_providers'].nil?
Settings.omniauth['block_auto_created_users'] = true if Settings.omniauth['block_auto_created_users'].nil?
Settings.omniauth['auto_link_ldap_user'] = false if Settings.omniauth['auto_link_ldap_user'].nil?
Settings.omniauth['auto_link_saml_user'] = false if Settings.omniauth['auto_link_saml_user'].nil?