N°5809 Update firebase/php-jwt from 6.4.0 to 6.10.0

This commit is contained in:
Pierre Goiffon
2024-01-25 17:23:14 +01:00
parent 71d9710322
commit fde01d5004
15 changed files with 342 additions and 74 deletions

View File

@@ -178,6 +178,16 @@ class CachedKeySet implements ArrayAccess
}
$request = $this->httpFactory->createRequest('GET', $this->jwksUri);
$jwksResponse = $this->httpClient->sendRequest($request);
if ($jwksResponse->getStatusCode() !== 200) {
throw new UnexpectedValueException(
sprintf('HTTP Error: %d %s for URI "%s"',
$jwksResponse->getStatusCode(),
$jwksResponse->getReasonPhrase(),
$this->jwksUri,
),
$jwksResponse->getStatusCode()
);
}
$this->keySet = $this->formatJwksForCache((string) $jwksResponse->getBody());
if (!isset($this->keySet[$keyId])) {