Esempio n. 1
0
 public TestDefaultAzureCredentialFactory(TokenCredentialOptions options, IFileSystemService fileSystem, IProcessService processService, IVisualStudioCodeAdapter vscAdapter)
     : base(options)
 {
     _fileSystem     = fileSystem;
     _processService = processService;
     _vscAdapter     = vscAdapter;
 }
 internal VisualStudioCodeCredential(string tenantId, CredentialPipeline pipeline, MsalPublicClient client, IFileSystemService fileSystem, IVisualStudioCodeAdapter vscAdapter)
 {
     _tenantId   = tenantId ?? "common";
     _pipeline   = pipeline;
     _client     = client;
     _fileSystem = fileSystem ?? FileSystemService.Default;
     _vscAdapter = vscAdapter ?? GetVscAdapter();
 }
 internal VisualStudioCodeCredential(VisualStudioCodeCredentialOptions options, CredentialPipeline pipeline, MsalPublicClient client, IFileSystemService fileSystem, IVisualStudioCodeAdapter vscAdapter)
 {
     _tenantId   = options?.TenantId ?? "common";
     _pipeline   = pipeline ?? CredentialPipeline.GetInstance(options);
     _client     = client ?? new MsalPublicClient(_pipeline, options?.TenantId, ClientId, null, null);
     _fileSystem = fileSystem ?? FileSystemService.Default;
     _vscAdapter = vscAdapter ?? GetVscAdapter();
 }
Esempio n. 4
0
 internal VisualStudioCodeCredential(VisualStudioCodeCredentialOptions options, CredentialPipeline pipeline, MsalPublicClient client, IFileSystemService fileSystem,
                                     IVisualStudioCodeAdapter vscAdapter)
 {
     _tenantId   = options?.TenantId ?? _commonTenant;
     _pipeline   = pipeline ?? CredentialPipeline.GetInstance(options);
     Client      = client ?? new MsalPublicClient(_pipeline, options?.TenantId, ClientId, null, null, options?.IsLoggingPIIEnabled ?? false);
     _fileSystem = fileSystem ?? FileSystemService.Default;
     _vscAdapter = vscAdapter ?? GetVscAdapter();
     _allowMultiTenantAuthentication = options?.AllowMultiTenantAuthentication ?? false;
 }
 internal VisualStudioCodeCredential(string tenantId, CredentialPipeline pipeline, IFileSystemService fileSystem, IVisualStudioCodeAdapter vscAdapter)
     : this(tenantId, pipeline, pipeline.CreateMsalPublicClient(ClientId), fileSystem, vscAdapter)
 {
 }
Esempio n. 6
0
 internal VisualStudioCodeCredential(string tenantId, CredentialPipeline pipeline, IFileSystemService fileSystem, IVisualStudioCodeAdapter vscAdapter)
     : this(tenantId, pipeline, default, fileSystem, vscAdapter)
 {
 }
 internal VisualStudioCodeCredential(string tenantId, TokenCredentialOptions options, IFileSystemService fileSystem, IVisualStudioCodeAdapter vscAdapter)
     : this(tenantId, CredentialPipeline.GetInstance(options), fileSystem, vscAdapter)
 {
 }