summaryrefslogtreecommitdiff
path: root/lib/gitlab/saml/config.rb
blob: 574c3a4b28c33c1f72b00fd52a9543cba0b393f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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