ASP.NET Core middleware that enables an application to support certificate authentication. This package was built from the source code at https://github.com/dotnet/dotnet/tree/87bc0b04e21d786669142109a5128c95618b75ed
$ dotnet add package Microsoft.AspNetCore.Authentication.CertificateMicrosoft.AspNetCore.Authentication.Certificate provides ASP.NET Core middleware that enables an application to support certificate authentication.
To use Microsoft.AspNetCore.Authentication.Certificate, follow these steps:
dotnet add package Microsoft.AspNetCore.Authentication.Certificate
Program.cs:
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAuthentication(
CertificateAuthenticationDefaults.AuthenticationScheme)
.AddCertificate();
var app = builder.Build();
app.UseAuthentication();
CertificateAuthenticationOptions: Provides options to configure certificate authenticationICertificateValidationCache: Provides a cache used to store AuthenticateResult results after the certificate has been validatedFor additional documentation and examples, refer to the official documentation on certificate authentication in ASP.NET Core.
Microsoft.AspNetCore.Authentication.Certificate is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.