diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-04-11 18:16:15 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-04-11 18:16:15 +0300 |
commit | 12e6084667f8750c263b4a2e324e9a283697b52e (patch) | |
tree | 20b9d57824dbafbcbb346c1a1566fbee2663165f /config | |
parent | 4087bd16e8e083550d306fd0c90d2a892b8577bf (diff) |
Allow `external_providers` for Omniauth to be defined to mark these users as external
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/1_settings.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index 72c4d8d61ce..94612997ead 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? |