I'm trying to authenticate a user using SmartCard Certificates in IdentityServer4.
When I follow the samples provided, Firstly, I'm unable to get my test certificates in the certificate popup in IE or Chrome. There is one Apple Device certificate that pops up for my iPhone and one other one, that could probably be wrong configuration of my test certificates.
But when I select any certificate, it take me to the login screen in ID4.
My question is, what interfaces do I have to implement so that a user can authenticate using a CAC, PIV, SmartCard or X.509 certificate and get back a token if the cert is valid ?
I've already researched the setup needed for Client Certificate authentication
var host = new WebHostBuilder()
.UseKestrel(cfg =>
{
var httpsoptions = new HttpsConnectionFilterOptions
{
ServerCertificate = cert,
ClientCertificateMode = ClientCertificateMode.AllowCertificate,
CheckCertificateRevocation = false,
SslProtocols = System.Security.Authentication.SslProtocols.Default,
ClientCertificateValidation = ClientCertificateValidation
};
cfg.UseHttps(httpsoptions);
})
Can anyone please help if you've implemented similar requirements using IdentityServer4 ?