Certificate Authorization using MinimalAPI
Hi,
I have been trying to authorize calls to a localhost service using certificates. Using the certificates, I can then add Clains to the client, that can be used to define what can be accessed and not accessed. This all works, and I can check the claims by accessing User from the HttpContext.
However, I would like to use the RequireAuthorization method instead, but when I enable it, it looks like my certificate is never validated.
So my authentication works when I remove the "RequireAuthorization", but I would rather use that method than getting claims from the httpcontext.
2 Replies