Welcome to mirror list, hosted at ThFree Co, Russian Federation.

provider.rb « o_auth « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f986499a27cc62e61151da0f8bd6c2b2a72b404f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Gitlab
  module OAuth
    class Provider
      def self.names
        providers = []

        Gitlab.config.ldap.servers.values.each do |server|
          providers << server['provider_name']
        end

        Gitlab.config.omniauth.providers.each do |provider|
          providers << provider['name']
        end

        providers
      end
    end
  end
end