CertificateAuthenticationAppBuilderExtensions.AddCertificate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddCertificate(AuthenticationBuilder) |
Adds certificate authentication. Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication. |
AddCertificate(AuthenticationBuilder, Action<CertificateAuthenticationOptions>) |
Adds certificate authentication. Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication. |
AddCertificate(AuthenticationBuilder, String) |
Adds certificate authentication. Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication. |
AddCertificate(AuthenticationBuilder, String, Action<CertificateAuthenticationOptions>) |
Adds certificate authentication. Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication. |
AddCertificate(AuthenticationBuilder)
Adds certificate authentication.
Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication.
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
Parameters
- builder
- AuthenticationBuilder
Returns
Applies to
AddCertificate(AuthenticationBuilder, Action<CertificateAuthenticationOptions>)
Adds certificate authentication.
Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication.
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
Parameters
- builder
- AuthenticationBuilder
- configureOptions
- Action<CertificateAuthenticationOptions>
A delegate to configure CertificateAuthenticationOptions.
Returns
Applies to
AddCertificate(AuthenticationBuilder, String)
Adds certificate authentication.
Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication.
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
Parameters
- builder
- AuthenticationBuilder
- authenticationScheme
- String
The authentication scheme.
Returns
Applies to
AddCertificate(AuthenticationBuilder, String, Action<CertificateAuthenticationOptions>)
Adds certificate authentication.
Certificate authentication uses a authentication handler that validates client certificate and raises an event where the certificate is resolved to a ClaimsPrincipal. See https://tools.ietf.org/html/rfc5246#section-7.4.4 to read more about certificate authentication.
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
Parameters
- builder
- AuthenticationBuilder
- authenticationScheme
- String
The authentication scheme.
- configureOptions
- Action<CertificateAuthenticationOptions>
A delegate to configure CertificateAuthenticationOptions.