Skip to content

Commit

Permalink
GCEDWDCredentials fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacarpet committed Dec 10, 2024
1 parent fbb8681 commit 4c31ed4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"affordablemobiles/open-telemetry-operations-php": "~1",
"guzzlehttp/guzzle": "^7.8.1",
"google/cloud": ">=0.239.0 <1.0.0",
"google/auth": ">=1.44.0",
"kelvinmo/simplejwt": "^0.8.2",
"laravel/framework": "~11"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function signOAuth2(string $alg, string $msg): string
* If $httpHandler is not specified a the default HttpHandler is used.
*
* @param callable $httpHandler callback which delivers psr7 request
* @param array<mixed> $headers [optional] Metrics headers to be inserted into the token endpoint request present.
*
* @return array<mixed> {
* A set of auth related metadata, based on the token type
Expand All @@ -131,12 +132,12 @@ public function signOAuth2(string $alg, string $msg): string
*
* @throws \Exception
*/
public function fetchAuthToken(?callable $httpHandler = null)
public function fetchAuthToken(?callable $httpHandler = null, array $headers = [])
{
if (empty($this->subject)) {
return parent::fetchAuthToken($httpHandler);
return parent::fetchAuthToken($httpHandler, $headers);
}

return $this->auth->fetchAuthToken($httpHandler);
return $this->auth->fetchAuthToken($httpHandler, $headers);
}
}

0 comments on commit 4c31ed4

Please sign in to comment.