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