From b10cda47df50eab29ba15b47dbb203d9e18c2eb6 Mon Sep 17 00:00:00 2001 From: Lucas Vianna Date: Tue, 17 Dec 2024 16:42:04 -0500 Subject: [PATCH] fix: Restored previous behavior where the apply! method returns the auth header (#506) --- lib/googleauth/base_client.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/googleauth/base_client.rb b/lib/googleauth/base_client.rb index 3f1fdb9..a9d75fa 100644 --- a/lib/googleauth/base_client.rb +++ b/lib/googleauth/base_client.rb @@ -37,6 +37,8 @@ def apply! a_hash, opts = {} hash = Digest::SHA256.hexdigest token Google::Logging::Message.from message: "Sending auth token. (sha256:#{hash})" end + + a_hash[AUTH_METADATA_KEY] end # Returns a clone of a_hash updated with the authentication token