Exemple #1
0
 /// <summary>
 /// Public constructor leveraging DI to initialize the ILogger interfafce
 /// </summary>
 /// <param name="logger">The instance of the logger service provided by DI</param>
 public CredentialManagerAuthenticationProvider(ILogger <OAuthAuthenticationProvider> logger)
     : base(logger)
 {
     // Create an instance of the inner UsernamePasswordAuthenticationProvider
     usernamePasswordProvider = new UsernamePasswordAuthenticationProvider(logger);
 }
 /// <summary>
 /// Public constructor leveraging DI to initialize the ILogger and IMsalHttpClientFactory interfaces
 /// </summary>
 /// <param name="logger">The instance of the logger service provided by DI</param>
 /// <param name="msalHttpClientFactory">The instance of the Msal Http Client Factory service provided by DI</param>
 public CredentialManagerAuthenticationProvider(ILogger <OAuthAuthenticationProvider> logger, IMsalHttpClientFactory msalHttpClientFactory)
     : base(logger)
 {
     // Create an instance of the inner UsernamePasswordAuthenticationProvider
     usernamePasswordProvider = new UsernamePasswordAuthenticationProvider(logger, msalHttpClientFactory);
 }