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. 2
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;
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a new instance of the <see cref="VisualStudioCodeCredential"/> with the specified options.
 /// </summary>
 /// <param name="options">Options for configuring the credential.</param>
 public VisualStudioCodeCredential(VisualStudioCodeCredentialOptions options) : this(options, default, default, default, default)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new instance of the <see cref="VisualStudioCodeCredential"/> with the specified options.
 /// </summary>
 /// <param name="options">Options for configuring the credential.</param>
 public VisualStudioCodeCredential(VisualStudioCodeCredentialOptions options) : this(options?.TenantId, CredentialPipeline.GetInstance(options), default, default)
 {
 }