Compartir a través de


CertificateAuthenticationAppBuilderExtensions.AddCertificateCache Método

Definición

Agrega autenticación de certificado.

La autenticación de certificados usa un controlador de autenticación que valida el certificado de cliente y genera un evento en el que el certificado se resuelve en un ClaimsPrincipal. Consulte https://tools.ietf.org/html/rfc5246#section-7.4.4 para obtener más información sobre la autenticación certicate.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificateCache (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidationCacheOptions> configureOptions = default);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificateCache (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidationCacheOptions>? configureOptions = default);
static member AddCertificateCache : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidationCacheOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCertificateCache (builder As AuthenticationBuilder, Optional configureOptions As Action(Of CertificateValidationCacheOptions) = Nothing) As AuthenticationBuilder

Parámetros

configureOptions
Action<CertificateValidationCacheOptions>

Delegado para configurar CertificateValidationCacheOptions.

Devoluciones

AuthenticationBuilder.

Se aplica a