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

sent_through_builder.rb « api_authentication « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f66e5960019aded78968ac76fa6c7671c066905e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

# See Gitlab::APIAuthentication::Builder
module Gitlab
  module APIAuthentication
    class SentThroughBuilder
      def initialize(strategies, resolvers)
        @strategies = strategies
        @resolvers = resolvers
      end

      def sent_through(*locators)
        locators.each do |locator|
          @strategies[locator] |= @resolvers
        end
      end
    end
  end
end