Skip to content

docs(design): devex proposal for mTLS PoP on Managed Identity and FIC - #3832

Merged
gladjohn merged 2 commits into
masterfrom
gladjohn-patch-3
Jun 8, 2026
Merged

docs(design): devex proposal for mTLS PoP on Managed Identity and FIC#3832
gladjohn merged 2 commits into
masterfrom
gladjohn-patch-3

Conversation

@gladjohn

@gladjohn gladjohn commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

What

Adds a developer-experience design document for enabling mTLS Proof-of-Possession (mTLS PoP) on the two managed-identity credential sources that currently don't support it:

  • AcquireTokenOptions.ManagedIdentity (pure Managed Identity)
  • SignedAssertionFromManagedIdentity (Federated Identity Credential signed by a Managed Identity)

The doc lives at docs/design/msi_fic_mtls_pop_devex.md, alongside the existing managed_identity_capabilities_devex.md.

Why

Microsoft.Identity.Web already supports mTLS PoP for confidential client apps that authenticate with a certificate (see token-binding.md). The opt-in is one line of configuration:

"ProtocolScheme": "MTLS_POP"

The same opt-in does not work today for the two managed-identity credential sources:

Credential source Bearer mTLS PoP today
Certificate
SignedAssertionFromManagedIdentity (FIC) ❌ doesn't exist
AcquireTokenOptions.ManagedIdentity (MSI) ❌ doesn't exist

This is the gap the proposal closes.

What's in scope

  • Configuration parity — the same "ProtocolScheme": "MTLS_POP" knob enables mTLS PoP for all three credential sources.
  • No new public API — opt-in stays declarative; app developers learn nothing new.
  • Two new dev-app samplesdaemon-app-msi-mtls and daemon-app-fic-mtls, modeled on the existing daemon-app-msi.
  • Two doc updatestoken-binding.md (add MI + FIC subsections) and certificateless.md (add a short cross-ref).

What's out of scope

  • Code changes — this PR is docs-only. Implementation lands in a follow-up PR.
  • New mTLS PoP knobs beyond what's already in token-binding.md.

Prerequisites for the implementation PR

  • Microsoft.Identity.Web takes a dependency on Microsoft.Identity.Client.KeyAttestation (GA in the next MSAL release).
  • The downstream resource must accept mTLS PoP tokens.
  • The application's tenant and client must be on the ESTS allow-list for mTLS-bound token issuance.

Add specification for mTLS Proof-of-Possession support in Microsoft.Identity.Web for Managed Identity and Federated Identity Credential.
Comment thread docs/design/msi-fic-pure-mtls-pop-devex.md
Comment thread docs/design/msi-fic-pure-mtls-pop-devex.md
gladjohn pushed a commit that referenced this pull request Jun 8, 2026
Implements devex spec #3832:

- TokenAcquisition: chain WithMtlsProofOfPossession().WithAttestationSupport()
  on the pure-MI builder when ProtocolScheme=MTLS_POP.
- ConfidentialClientApplicationBuilderExtension: dispatch FIC-with-MI to a
  bound-assertion delegate that returns ClientSignedAssertion (carrying both
  the JWT and the MI-minted binding certificate). All other signed-assertion
  source types still throw IDW10115 (preserved by regression test).
- ManagedIdentityClientAssertion: new internal GetSignedAssertionWithBindingAsync
  that calls AcquireTokenForManagedIdentity(...).WithMtlsProofOfPossession()
  .WithAttestationSupport() and returns the bound assertion + cert pair.
- Reference Microsoft.Identity.Client.KeyAttestation 4.84.1-preview.
- IVT from Certificateless to TokenAcquisition (3rd entry in established file).
- 2 new unit tests in WithClientCredentialsTests.cs (930 total pass, 0 fail).
- 2 new daemon samples: daemon-app-msi-mtls, daemon-app-fic-mtls.

No new public API surface.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gladjohn
gladjohn merged commit b860e97 into master Jun 8, 2026
4 checks passed
@gladjohn
gladjohn deleted the gladjohn-patch-3 branch June 8, 2026 16:54
```json
{
"AzureKeyVault": {
"BaseUrl": "https://contoso.vault.azure.net/",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the AKV url changes to an mtls specific endpoint?

@bgavrilMS bgavrilMS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

gladjohn added a commit that referenced this pull request Jun 10, 2026
#3839)

* Add MSI mTLS PoP support: pure MI + FIC-with-MI

Implements devex spec #3832:

- TokenAcquisition: chain WithMtlsProofOfPossession().WithAttestationSupport()
  on the pure-MI builder when ProtocolScheme=MTLS_POP.
- ConfidentialClientApplicationBuilderExtension: dispatch FIC-with-MI to a
  bound-assertion delegate that returns ClientSignedAssertion (carrying both
  the JWT and the MI-minted binding certificate). All other signed-assertion
  source types still throw IDW10115 (preserved by regression test).
- ManagedIdentityClientAssertion: new internal GetSignedAssertionWithBindingAsync
  that calls AcquireTokenForManagedIdentity(...).WithMtlsProofOfPossession()
  .WithAttestationSupport() and returns the bound assertion + cert pair.
- Reference Microsoft.Identity.Client.KeyAttestation 4.84.1-preview.
- IVT from Certificateless to TokenAcquisition (3rd entry in established file).
- 2 new unit tests in WithClientCredentialsTests.cs (930 total pass, 0 fail).
- 2 new daemon samples: daemon-app-msi-mtls, daemon-app-fic-mtls.

No new public API surface.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address review feedback: rename effectiveToken; bump KeyAttestation to GA 4.84.2

- Rename CancellationToken variable per cpp11nullptr review feedback to
  avoid confusion with OAuth/auth tokens (effectiveToken ->
  effectiveCancellationToken in GetSignedAssertionWithBindingAsync).
- Bump Microsoft.Identity.Client.KeyAttestation from 4.84.1-preview to
  GA 4.84.2 so it aligns with MSAL 4.84.2 already on master.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* address pr comments

---------

Co-authored-by: gladjohn <gladjohn@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants