CertificateAuthenticationAppBuilderExtensions.AddCertificateCache Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
- builder
- AuthenticationBuilder
- configureOptions
- Action<CertificateValidationCacheOptions>
Délégué à configurer CertificateValidationCacheOptions.