Udostępnij za pośrednictwem


CertificateAuthenticationAppBuilderExtensions.AddCertificateCache Metoda

Definicja

Dodaje uwierzytelnianie certyfikatu.

Uwierzytelnianie certyfikatu używa procedury obsługi uwierzytelniania, która weryfikuje certyfikat klienta i zgłasza zdarzenie, w którym certyfikat jest rozpoznawany jako ClaimsPrincipal. Zobacz https://tools.ietf.org/html/rfc5246#section-7.4.4 , aby dowiedzieć się więcej na temat uwierzytelniania 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

Parametry

configureOptions
Action<CertificateValidationCacheOptions>

Pełnomocnik do skonfigurowania CertificateValidationCacheOptions.

Zwraca

Element AuthenticationBuilder.

Dotyczy