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)

Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
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>)

Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
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

参数

configureOptions
Action<CertificateAuthenticationOptions>

用于配置 CertificateAuthenticationOptions的委托。

返回

AuthenticationBuilder

适用于

AddCertificate(AuthenticationBuilder, String)

Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
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>)

Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
CertificateAuthenticationExtensions.cs
Source:
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

身份验证方案。

configureOptions
Action<CertificateAuthenticationOptions>

用于配置 CertificateAuthenticationOptions的委托。

返回

AuthenticationBuilder

适用于