public function fetchKeys($iss)
    {
        $url = "{$iss}.well-known/jwks.json";

        if (($secret = $this->cache->get($url)) === null) {
            $secret = [];

            $request = new RequestBuilder([
                'domain' => $iss,
                'basePath' => '.well-known/jwks.json',
                'method' => 'GET',
                'guzzleOptions' => $this->guzzleOptions
            ]);
            $jwks    = $request->call();

            foreach ($jwks['keys'] as $key) {
                $secret[$key['kid']] = $this->convertCertToPem($key['x5c'][0]);
            }

            $this->cache->set($url, $secret);
        }

        return $secret;
    }
public function fetchKeys($iss)
    {
        $url = "{$iss}.well-known/jwks.json";

        if (($secret = $this->cache->get($url)) === null) {
            $secret = [];

            $request = new RequestBuilder([
                'domain' => $iss,
                'basePath' => '.well-known/jwks.json',
                'method' => 'GET',
                'guzzleOptions' => $this->guzzleOptions
            ]);
            $jwks    = $request->call();

            foreach ($jwks['keys'] as $key) {
                $secret[$key['kid']] = $this->convertCertToPem($key['x5c'][0]);
            }

            $this->cache->set($url, $secret);
        }

        return $secret;
    }
public function fetchKeys ( $ iss ) { $ url = "{$iss}.well-known/jwks.json" ; if ( ( $ secret = $ this -> cache -> get ( $ url ) ) === null ) { $ secret = [ ] ; $ request = new RequestBuilder ( [ 'domain' => $ iss , 'basePath' => '.well-known/jwks.json' , 'method' => 'GET' , 'guzzleOptions' => $ this -> guzzleOptions ] ) ; $ jwks = $ request -> call ( ) ; foreach ( $ jwks [ 'keys' ] as $ key ) { $ secret [ $ key [ 'kid' ] ] = $ this -> convertCertToPem ( $ key [ 'x5c' ] [ 0 ] ) ; } $ this -> cache -> set ( $ url , $ secret ) ; } return $ secret ; }
Appends the default JWKS path to a token issuer to return all keys from a JWKS.

@deprecated 5.4.0, use requestJwkX5c instead.

@param string $iss

@return array|mixed|null

@throws \Exception

@codeCoverageIgnore
Appends the default JWKS path to a token issuer to return all keys from a JWKS .