User283571144 posted
Hi jrichers,
In my opinion, this is possible, we could create a custom filter to get the user certificate and get the SAN from the certificate and check it in the database.
I suggest you could refer to below article to know how to create the custom filter and how to get the certficate from requrst and get the SAN.
For how to create a custom filter in MVC, you could refer to below article:
What is custom filter:https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-custom-action-filters
How to get the request in the custom filter and how to register it.https://stackoverflow.com/a/6940798/7609093
About how to get the SAN in the requrest's certificate, you could refer to below article:
Get the certificate from request:
HttpRequestBase request = filterContext.HttpContext.Request;
var re = request.ClientCertificate;
Get SAN:
https://stackoverflow.com/a/16698506/7609093
Best Regards,
Brando