/// <summary>
 /// Initializes a new instance of the <see cref="AzureKeyVaultTokenSigningService"/> class.
 /// </summary>
 /// <param name="publicKeyProvider">The public key provider.</param>
 /// <param name="options">The options.</param>
 public AzureKeyVaultTokenSigningService(IPublicKeyProvider publicKeyProvider, IOptions<AzureKeyVaultTokenSigningServiceOptions> options)
 {
     _publicKeyProvider = publicKeyProvider;
     _options = options.Value;
     _authentication = new AzureKeyVaultAuthentication(_options.ClientId, _options.ClientSecret);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AzureKeyVaultTokenSigningService"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public AzureKeyVaultPublicKeyProvider(IOptions <AzureKeyVaultTokenSigningServiceOptions> options)
 {
     _options        = options.Value;
     _authentication = new AzureKeyVaultAuthentication(_options.ClientId, _options.ClientSecret);
 }