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();
 }
示例#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;
 }
示例#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)
 {
 }
示例#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)
 {
 }