BigW Consortium Gitlab

config.rb 358 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
module Gitlab
  module Saml
    class Config
      class << self
        def options
          Gitlab.config.omniauth.providers.find { |provider| provider.name == 'saml' }
        end

        def groups
10
          options[:groups_attribute]
11 12 13
        end

        def external_groups
14
          options[:external_groups]
15 16 17 18 19
        end
      end
    end
  end
end