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(); }
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; }
/// <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) { }
/// <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) { }