KestrunHostAuthnExtensions.AddClientCertificateAuthentication method (1 of 3)

Adds Client Certificate Authentication to the Kestrun host with default settings.

public static KestrunHost AddClientCertificateAuthentication(this KestrunHost host)
parameter description
host The Kestrun host instance.

Return Value

The configured KestrunHost instance.

See Also


KestrunHostAuthnExtensions.AddClientCertificateAuthentication method (2 of 3)

Adds Client Certificate Authentication to the Kestrun host.

Use this for authenticating clients using X.509 certificates.

public static KestrunHost AddClientCertificateAuthentication(this KestrunHost host, 
    string scheme = "Certificate", string? displayName = "Client Certificate Authentication", 
    Action<ClientCertificateAuthenticationOptions>? configure = null)
parameter description
host The Kestrun host instance.
scheme The authentication scheme name (default is “Certificate”).
displayName The display name for the authentication scheme.
configure Optional configuration for ClientCertificateAuthenticationOptions.

Return Value

The configured KestrunHost instance.

See Also


KestrunHostAuthnExtensions.AddClientCertificateAuthentication method (3 of 3)

Adds Client Certificate Authentication to the Kestrun host using the provided options object.

public static KestrunHost AddClientCertificateAuthentication(this KestrunHost host, string scheme, 
    string? displayName, ClientCertificateAuthenticationOptions configure)
parameter description
host The Kestrun host instance.
scheme The authentication scheme name (default is “Certificate”).
displayName The display name for the authentication scheme.
configure The ClientCertificateAuthenticationOptions object to configure the authentication.

Return Value

The configured KestrunHost instance.

See Also