summaryrefslogtreecommitdiff
path: root/lib/gitlab/saml/config.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-07 12:43:35 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-07 12:43:35 +0200
commit3e26f6b00f702d1430aed1b6a51b1923ce7ccb71 (patch)
treec406ad2d5aaa72614ef5956d91c791b5fa05b40c /lib/gitlab/saml/config.rb
parent2b91abbcedb46a74770c7384544b1239d0e210a5 (diff)
parenta918e8bf277418048776a5d9c34a64b39f4e56f3 (diff)
downloadgitlab-ce-3e26f6b00f702d1430aed1b6a51b1923ce7ccb71.tar.gz
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into no-gc-auto
Diffstat (limited to 'lib/gitlab/saml/config.rb')
-rw-r--r--lib/gitlab/saml/config.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/gitlab/saml/config.rb b/lib/gitlab/saml/config.rb
new file mode 100644
index 00000000000..0f40c00f547
--- /dev/null
+++ b/lib/gitlab/saml/config.rb
@@ -0,0 +1,21 @@
+module Gitlab
+ module Saml
+ class Config
+
+ class << self
+ def options
+ Gitlab.config.omniauth.providers.find { |provider| provider.name == 'saml' }
+ end
+
+ def groups
+ options[:groups_attribute]
+ end
+
+ def external_groups
+ options[:external_groups]
+ end
+ end
+
+ end
+ end
+end