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 80db243 commit fa71e8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"a1comms/opencensus-exporter-stackdriver": "~0",
"guzzlehttp/guzzle": "^7.4.1",
"google/cloud": ">=0.175.0 <1.0.0",
"google/auth": ">=1.44.0",
"kelvinmo/simplejwt": "^0.6.2",
"illuminate/support": "~9",
"illuminate/contracts": "~9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,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 fa71e8c

Please sign in to comment.