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

token_type_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: 4a57cdc2742228c90ce6f5f1fec42fe37d71c5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

# See Gitlab::Auth::AuthBuilder
module Gitlab
  module APIAuthentication
    class TokenTypeBuilder
      def initialize(strategies)
        @strategies = strategies
      end

      def token_types(*resolvers)
        ::Gitlab::APIAuthentication::SentThroughBuilder.new(@strategies, resolvers)
      end

      alias_method :token_type, :token_types
    end
  end
end