예제 #1
0
        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);
        }
예제 #2
0
 private static KeyVaultClient GetKeyVaultClient(SecretAttribute attribute)
 {
     return(new KeyVaultClient(GetAuthenticationCallback(attribute.ClientId, attribute.ClientSecret)));
 }