debian-mirror-gitlab/lib/api/helpers/packages/maven/basic_auth_helpers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
527 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# 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