Langue

CertificateAuthenticationAppBuilderExtensions.AddCertificateCache Méthode

Définition

Ajoute l’authentification par certificat.

L’authentification par certificat utilise un gestionnaire d’authentification qui valide le certificat client et déclenche un événement où le certificat est résolu en un ClaimsPrincipal. Pour en savoir plus sur l’authentification par certificat, consultez https://tools.ietf.org/html/rfc5246#section-7.4.4 cette rubrique.

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

Paramètres

configureOptions
Action<CertificateValidationCacheOptions>

Délégué à configurer CertificateValidationCacheOptions.

Retours

Le AuthenticationBuilder.

S’applique à