- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10.5k
 
Description
Is there an existing issue for this?
- I have searched the existing issues
 
Is your feature request related to a problem? Please describe the problem.
We are trying to use IIS Client Certificate mapping authentication together with ASP.NET Out of process handler. We see that ANCM module add MS-ASPNETCORE-CLIENTCERT header to pass the certificate blob to the core process, but this prevent the target asp.net core process to lose the mapped user context.
In other words: with IIS Client cert mapping(authmap.dll), IIS maps the certificate into a Windows identity. For the mapping to work IIS should forward the identity handle, not the certificate. The certificate no longer matters at that point, and aspnet core doesn’t know about or have the ability to take a client certificate and map it to a user. That doesn’t appear to be happening in ANCM, the IIS integration piece.
I know that after a successful certificate mapping , the User Context and the cached token is at the same place (HTTP Context), so hopefully it wont be a difficult change:
aspnetcore/src/Servers/IIS/AspNetCoreModuleV2/OutOfProcessRequestHandler/forwardinghandler.cpp
Line 814 in 52eff90
| if (fForwardWindowsAuthToken && | 
Thanks,
Mert
Describe the solution you'd like
We would like to add IIS Certificate Mapping Authentication Integration to ANCM, via forwarding the identity handled instead of cert blob.
Additional context
No response