Commit 4041eb77 authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Remove EE Api guard

parent e30e8657
# frozen_string_literal: true
module EE
module API
module APIGuard
module HelperMethods
extend ::Gitlab::Utils::Override
override :find_user_from_sources
def find_user_from_sources
deploy_token_from_request ||
find_user_from_bearer_token ||
find_user_from_job_token ||
find_user_from_warden
end
end
end
end
end
......@@ -43,7 +43,6 @@ module API
# Helper Methods for Grape Endpoint
module HelperMethods
prepend_if_ee('EE::API::APIGuard::HelperMethods') # rubocop: disable Cop/InjectEnterpriseEditionModule
include Gitlab::Auth::AuthFinders
def access_token
......@@ -66,7 +65,6 @@ module API
def find_user_from_sources
deploy_token_from_request ||
find_user_from_access_token ||
find_user_from_bearer_token ||
find_user_from_job_token ||
find_user_from_warden
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment