AzureKeyVaultGetSecret Method

Returns the value of a Client Secret

Definition

Namespace: MobileTrack.Common.KeyVault
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public string GetSecret(
	string secret,
	CancellationToken cancellationToken = default
)

Parameters

secret  String
Secret name
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

String
string value of the secret

Implements

IAzureKeyVaultGetSecret(String, CancellationToken)

Exceptions

ArgumentExceptionsecret is an empty string.
ArgumentNullExceptionsecret is null.
RequestFailedExceptionThe server returned an error. See Message for details returned from the server.

See Also