update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
2
vendor/google/auth/VERSION
vendored
2
vendor/google/auth/VERSION
vendored
@@ -1 +1 @@
|
||||
1.50.0
|
||||
1.50.1
|
||||
|
||||
2
vendor/google/auth/composer.json
vendored
2
vendor/google/auth/composer.json
vendored
@@ -15,7 +15,7 @@
|
||||
"guzzlehttp/psr7": "^2.4.5",
|
||||
"psr/http-message": "^1.1||^2.0",
|
||||
"psr/cache": "^2.0||^3.0",
|
||||
"psr/log": "^3.0"
|
||||
"psr/log": "^2.0||^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"guzzlehttp/promises": "^2.0",
|
||||
|
||||
@@ -72,6 +72,11 @@ class ImpersonatedServiceAccountCredentials extends CredentialsLoader implements
|
||||
|
||||
private int $lifetime;
|
||||
|
||||
/**
|
||||
* @var array<mixed>|null
|
||||
*/
|
||||
protected array|null $lastReceivedToken = null;
|
||||
|
||||
/**
|
||||
* Instantiate an instance of ImpersonatedServiceAccountCredentials from a credentials file that
|
||||
* has be created with the --impersonate-service-account flag.
|
||||
@@ -252,7 +257,7 @@ public function fetchAuthToken(?callable $httpHandler = null)
|
||||
$response = $httpHandler($request);
|
||||
$body = json_decode((string) $response->getBody(), true);
|
||||
|
||||
return match ($this->isIdTokenRequest()) {
|
||||
return $this->lastReceivedToken = match ($this->isIdTokenRequest()) {
|
||||
true => ['id_token' => $body['token']],
|
||||
false => [
|
||||
'access_token' => $body['accessToken'],
|
||||
@@ -279,7 +284,7 @@ public function getCacheKey()
|
||||
*/
|
||||
public function getLastReceivedToken()
|
||||
{
|
||||
return $this->sourceCredentials->getLastReceivedToken();
|
||||
return $this->lastReceivedToken;
|
||||
}
|
||||
|
||||
protected function getCredType(): string
|
||||
|
||||
Reference in New Issue
Block a user