diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /lib/gitlab/workhorse.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r-- | lib/gitlab/workhorse.rb | 6 |
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 |