debian-mirror-gitlab/lib/api/helpers/packages/maven/basic_auth_helpers.rb
2023-07-09 08:55:56 +05:30

21 lines
527 B
Ruby

# frozen_string_literal: true
module API
module Helpers
module Packages
module Maven
module BasicAuthHelpers
include ::API::Helpers::Packages::BasicAuthHelpers
extend ::Gitlab::Utils::Override
# override so that we can receive the job token either by headers or
# basic auth.
override :find_user_from_job_token
def find_user_from_job_token
super || find_user_from_basic_auth_job
end
end
end
end
end
end