protected function JWKFetcher::requestJwks in Auth0 Single Sign On 8.2
Get a JWKS from a specific URL.
@codeCoverageIgnore
Parameters
string $jwks_url URL to the JWKS.:
Return value
mixed|string
Throws
RequestException If $jwks_url is empty or malformed.
ClientException If the JWKS cannot be retrieved.
2 calls to JWKFetcher::requestJwks()
- JWKFetcher::getKeys in vendor/
auth0/ auth0-php/ src/ Helpers/ JWKFetcher.php - Gets an array of keys from the JWKS as kid => x5c.
- JWKFetcher::requestJwkX5c in vendor/
auth0/ auth0-php/ src/ Helpers/ JWKFetcher.php - Fetch x509 cert for RS256 token decoding.
File
- vendor/
auth0/ auth0-php/ src/ Helpers/ JWKFetcher.php, line 141
Class
- JWKFetcher
- Class JWKFetcher.
Namespace
Auth0\SDK\HelpersCode
protected function requestJwks($jwks_url) {
$request = new RequestBuilder([
'domain' => $jwks_url,
'method' => 'GET',
'guzzleOptions' => $this->guzzleOptions,
]);
return $request
->call();
}