From 702ceb4ccbfc64f0414120b0d7f7b5ae4f7ff280 Mon Sep 17 00:00:00 2001 From: Brad Sickles Date: Thu, 11 Dec 2025 13:37:47 -0500 Subject: [PATCH] fix: missing auth header in impersonated service account credentials --- lib/googleauth/impersonated_service_account.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/googleauth/impersonated_service_account.rb b/lib/googleauth/impersonated_service_account.rb index b659c4f..6c946be 100644 --- a/lib/googleauth/impersonated_service_account.rb +++ b/lib/googleauth/impersonated_service_account.rb @@ -296,9 +296,7 @@ def fetch_access_token! _options = {} # @private # @return [Hash] The authorization header with the source credentials' token def prepare_auth_header - auth_header = {} - @source_credentials.updater_proc.call auth_header - auth_header + @source_credentials.updater_proc.call {} end # Makes the HTTP request to the impersonation endpoint.