共用方式為


CertificateAuthenticationAppBuilderExtensions.AddCertificate 方法

定義

多載

AddCertificate(AuthenticationBuilder)

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

AddCertificate(AuthenticationBuilder, Action<CertificateAuthenticationOptions>)

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

AddCertificate(AuthenticationBuilder, String)

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

AddCertificate(AuthenticationBuilder, String, Action<CertificateAuthenticationOptions>)

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

AddCertificate(AuthenticationBuilder)

來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddCertificate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCertificate (builder As AuthenticationBuilder) As AuthenticationBuilder

參數

傳回

AuthenticationBuilder

適用於

AddCertificate(AuthenticationBuilder, Action<CertificateAuthenticationOptions>)

來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateAuthenticationOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateAuthenticationOptions>? configureOptions);
static member AddCertificate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCertificate (builder As AuthenticationBuilder, configureOptions As Action(Of CertificateAuthenticationOptions)) As AuthenticationBuilder

參數

傳回

AuthenticationBuilder

適用於

AddCertificate(AuthenticationBuilder, String)

來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddCertificate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCertificate (builder As AuthenticationBuilder, authenticationScheme As String) As AuthenticationBuilder

參數

authenticationScheme
String

驗證配置。

傳回

AuthenticationBuilder

適用於

AddCertificate(AuthenticationBuilder, String, Action<CertificateAuthenticationOptions>)

來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs
來源:
CertificateAuthenticationExtensions.cs

新增憑證驗證。

憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 ClaimsPrincipal 的事件。 請參閱 https://tools.ietf.org/html/rfc5246#section-7.4.4 以深入瞭解憑證驗證。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateAuthenticationOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCertificate (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateAuthenticationOptions>? configureOptions);
static member AddCertificate : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.Certificate.CertificateAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCertificate (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of CertificateAuthenticationOptions)) As AuthenticationBuilder

參數

authenticationScheme
String

驗證配置。

傳回

AuthenticationBuilder

適用於