summaryrefslogtreecommitdiff
path: root/app/helpers/auth_helper.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-08-31 13:59:52 +0300
committerValery Sizov <vsv2711@gmail.com>2015-09-02 12:42:01 +0300
commit3700e5a9607ba9980940a29d275e22034538473d (patch)
treee781dc06aba5c73b979295eb124b1ef68c1f20aa /app/helpers/auth_helper.rb
parent6f19e8799e4c8233b01068bf6b5406b0ba1d1105 (diff)
downloadgitlab-ce-3700e5a9607ba9980940a29d275e22034538473d.tar.gz
Crowd integration
Diffstat (limited to 'app/helpers/auth_helper.rb')
-rw-r--r--app/helpers/auth_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb
index 0e7a37b4cc6..d9502181c4f 100644
--- a/app/helpers/auth_helper.rb
+++ b/app/helpers/auth_helper.rb
@@ -1,6 +1,6 @@
module AuthHelper
PROVIDERS_WITH_ICONS = %w(twitter github gitlab bitbucket google_oauth2).freeze
- FORM_BASED_PROVIDERS = [/\Aldap/, 'kerberos'].freeze
+ FORM_BASED_PROVIDERS = [/\Aldap/, 'kerberos', 'crowd'].freeze
def ldap_enabled?
Gitlab.config.ldap.enabled
@@ -26,6 +26,10 @@ module AuthHelper
auth_providers.select { |provider| form_based_provider?(provider) }
end
+ def crowd_enabled?
+ auth_providers.include? :crowd
+ end
+
def button_based_providers
auth_providers.reject { |provider| form_based_provider?(provider) }
end