Open fracz opened 2 years ago
I know this is old, but I ended up fixing this by overwriting the post
function like this:
class CloudAwareKeyVaultClient extends AzKeyVault\Client
{
public function post(string $url, array $body, string $accessToken = null, string $accessTokenHeader = 'Authorization', string $apiVersion = self::VAULT_API_VERSION)
{
$url = Spatie\Url\Url::fromString($url)->withQueryParameter('api-version', $apiVersion);
return json_decode($this->client->put($url, [
'headers' => [$accessTokenHeader => $accessToken ?? $this->accessToken],
'json' => $body,
])->getBody());
}
}
When I try to use the
setSecret(string, string)
method, I receive the following error message.Possibly related with https://stackoverflow.com/a/34411797/878514