Example #1
0
 /// <summary>
 /// Create an instance of CliCredential class.
 /// </summary>
 /// <param name="options"> The Azure Active Directory tenant (directory) Id of the service principal. </param>
 public AzureCliCredential(AzureCliCredentialOptions options)
     : this(CredentialPipeline.GetInstance(null), default, options)
 {
 }
Example #2
0
 internal AzureCliCredential(CredentialPipeline pipeline, IProcessService processService, AzureCliCredentialOptions options = null)
 {
     _pipeline       = pipeline;
     _path           = !string.IsNullOrEmpty(EnvironmentVariables.Path) ? EnvironmentVariables.Path : DefaultPath;
     _processService = processService ?? ProcessService.Default;
     _allowMultiTenantAuthentication = options?.AllowMultiTenantAuthentication ?? false;
     _tenantId = options?.TenantId;
 }
Example #3
0
 internal AzureCliCredential(CredentialPipeline pipeline, IProcessService processService, AzureCliCredentialOptions options = null)
 {
     _logPII         = options?.IsLoggingPIIEnabled ?? false;
     _pipeline       = pipeline;
     _path           = !string.IsNullOrEmpty(EnvironmentVariables.Path) ? EnvironmentVariables.Path : DefaultPath;
     _processService = processService ?? ProcessService.Default;
     _tenantId       = options?.TenantId;
 }