File: IISOptions.cs
Web Access
Project: src\src\Servers\IIS\IISIntegration\src\Microsoft.AspNetCore.Server.IISIntegration.csproj (Microsoft.AspNetCore.Server.IISIntegration)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Builder;
 
/// <summary>
/// Options to configure IIS Out-Of-Process.
/// </summary>
public class IISOptions
{
    /// <summary>
    /// If true the middleware should set HttpContext.User. If false the middleware will only provide an
    /// identity when explicitly requested by the AuthenticationScheme.
    /// Note Windows Authentication must also be enabled in IIS for this to work.
    /// </summary>
    public bool AutomaticAuthentication { get; set; } = true;
 
    /// <summary>
    /// Sets the display name shown to users on login pages. The default is null.
    /// </summary>
    public string? AuthenticationDisplayName { get; set; }
 
    /// <summary>
    /// Used to indicate if the authentication handler should be registered. This is only done if ANCM indicates
    /// IIS has a non-anonymous authentication enabled, or for back compat with ANCMs that did not provide this information.
    /// </summary>
    internal bool ForwardWindowsAuthentication { get; set; } = true;
 
    /// <summary>
    /// Populates the ITLSConnectionFeature if the MS-ASPNETCORE-CLIENTCERT request header is present.
    /// </summary>
    public bool ForwardClientCertificate { get; set; } = true;
}