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 .ClaimsPrincipal Consultez https://tools.ietf.org/html/rfc5246#section-7.4.4 pour en savoir plus sur l’authentification 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

Paramètres

configureOptions
Action<CertificateValidationCacheOptions>

Délégué pour configurer CertificateValidationCacheOptions.

Retours

L’AuthenticationBuilderopérateur

S’applique à