private static async Task <string> GetSecretAsync(SecretAttribute attribute) { var client = new KeyVaultClient(GetAuthenticationCallback(attribute.ClientId, attribute.ClientSecret)); var secret = await client.GetSecretAsync(attribute.SecretIdentifier); return(secret.Value); }
private static KeyVaultClient GetKeyVaultClient(SecretAttribute attribute) { return(new KeyVaultClient(GetAuthenticationCallback(attribute.ClientId, attribute.ClientSecret))); }