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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-06 09:10:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-06 09:10:35 +0300
commit25ceb3dc1c387950d777b71aabde00849d4c7bf9 (patch)
tree755188dc8d772ad10fb52f6eaa75a499ee15325a /lib/gitlab/workhorse.rb
parent0fbe2f816ecef98003377154b479d350f13597d7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r--lib/gitlab/workhorse.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index 3a905a2e1c5..19d30daa577 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -203,11 +203,11 @@ module Gitlab
end
def verify_api_request!(request_headers)
- decode_jwt(request_headers[INTERNAL_API_REQUEST_HEADER])
+ decode_jwt_with_issuer(request_headers[INTERNAL_API_REQUEST_HEADER])
end
- def decode_jwt(encoded_message)
- decode_jwt_for_issuer('gitlab-workhorse', encoded_message)
+ def decode_jwt_with_issuer(encoded_message)
+ decode_jwt(encoded_message, issuer: 'gitlab-workhorse')
end
def secret_path