CertificateAuthenticationAppBuilderExtensions.AddCertificate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
新增憑證驗證。
憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 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
參數
傳回
適用於
AddCertificate(AuthenticationBuilder, Action<CertificateAuthenticationOptions>)
新增憑證驗證。
憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 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
參數
- configureOptions
- Action<CertificateAuthenticationOptions>
要設定 CertificateAuthenticationOptions 的委派。
傳回
適用於
AddCertificate(AuthenticationBuilder, String)
新增憑證驗證。
憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 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
驗證配置。
傳回
適用於
AddCertificate(AuthenticationBuilder, String, Action<CertificateAuthenticationOptions>)
新增憑證驗證。
憑證驗證會使用驗證用戶端憑證的驗證處理常式,並引發憑證解析為 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
驗證配置。
- configureOptions
- Action<CertificateAuthenticationOptions>
要設定 CertificateAuthenticationOptions 的委派。