Skip to content

ANCM should forward the mapped Identity instead of the client certificate after IIS Client Cert Mapping Auth #42896

@mertozturk80

Description

@mertozturk80

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-iisIncludes: IIS, ANCM

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions