private async Task <AzureKeyVaultSignatureProvider> Refresher()
        {
            var cachedData = await _keyVaultCache.GetKeyVaultCacheDataAsync();

            var keyIdentifier     = cachedData.KeyIdentifier;
            var signatureProvider = new AzureKeyVaultSignatureProvider(
                keyIdentifier.Identifier,
                JsonWebKeySignatureAlgorithm.RS256,
                new AzureKeyVaultAuthentication(_keyVaultOptions.Value.ClientId, _keyVaultOptions.Value.ClientSecret).KeyVaultClientAuthenticationCallback);

            return(signatureProvider);
        }
        public async Task <IEnumerable <SecurityKey> > GetValidationKeysAsync()
        {
            var cachedData = await _keyVaultCache.GetKeyVaultCacheDataAsync();

            return(cachedData.RsaSecurityKeys);
        }
Beispiel #3
0
        private async Task <SigningCredentials> GetSigningCredentialsAsync()
        {
            var cachedData = await _keyVaultCache.GetKeyVaultCacheDataAsync();

            return(cachedData.SigningCredentials);
        }