Repository navigation
AB#3788751: L3-WI-2F Implement DPoP outcome handling for Platform Authentication DOM API - #8968
Merged
Hector Morales (hectormmg) merged 12 commits intoNov 20, 2026
Conversation
Implements AB#3788751. Preserve canonical broker properties and Edge request fields while sharing fail-closed L1/L3 validation and existing key/cache lifecycle. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A critical guard bypass allows top-level DPoP indicators to be dropped when properties are empty, letting DPoP tokens be accepted and returned or cached under a requested non-DPoP scheme.
1 open issue
What changed in this PR
Extends broker DPoP outcome handling to the Edge Platform Authentication DOM API, building on #8789 while preserving shared validation, proof handling, and cache behavior.
Changes:
- Enables DOM DPoP routing after discovery advertises the required contract.
- Shares L1/L3 outcome validation and adds DOM response checks and error sanitization.
- Adds transport-equivalence tests and updates preview documentation and release metadata.
| File | Description |
|---|---|
lib/msal-browser/test/request/SilentRequestHelpers.spec.ts |
Tests capability-gated silent request preparation. |
lib/msal-browser/test/interaction_client/PlatformAuthInteractionClient.spec.ts |
Tests transport equivalence, proofs, caching, and redirect key ownership. |
lib/msal-browser/test/broker/PlatformAuthProvider.spec.ts |
Tests DOM DPoP routing after contract discovery. |
lib/msal-browser/test/broker/PlatformAuthDOMHandler.spec.ts |
Tests request mapping, response validation, and sanitized errors. |
lib/msal-browser/src/interaction_client/PlatformAuthInteractionClient.ts |
Delegates outcome validation to the shared helper. |
lib/msal-browser/src/broker/nativeBroker/PlatformAuthResponse.ts |
Aligns DOM properties with the canonical broker contract. |
lib/msal-browser/src/broker/nativeBroker/PlatformAuthProvider.ts |
Allows DPoP routing through a capability-enabled DOM provider. |
lib/msal-browser/src/broker/nativeBroker/PlatformAuthDpop.ts |
Extracts shared L1/L3 validation and outcome telemetry. |
lib/msal-browser/src/broker/nativeBroker/PlatformAuthDOMHandler.ts |
Implements DOM DPoP transport handling and validation. |
lib/msal-browser/docs/device-bound-tokens.md |
Documents DOM preview requirements and broker outcome behavior. |
change/@azure-msal-browser-platform-dom-dpop-outcomes.json |
Records the feature as a minor release change. |
Review effort: Balanced
Retain the merged resource nonce guidance and align the DOM preparation test with broker DPoP deduplication semantics. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Cover PCA nonce propagation through both transports for L1 local resource proofs and unchanged L3 broker proofs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Describe extension and DOM transport availability consistently and omit internal wire mappings and cache/key lifecycle details. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Fail closed for Bearer and legacy PoP responses with top-level DPoP indicators, including empty or absent canonical properties. Cover direct-handler rejection and account/cache/key mutation boundaries. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Remove unused DOM outcome aliases and redundant attestation parsing, require request-aware DOM validation, and reuse the shared token-type classifier. Retain validation at both the direct DOM and shared interaction boundaries. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Remove DOM-specific error-code exceptions and the artificial DPoP capability latch. Retain normal DOM transport discovery, known native error sanitization and status mappings, and shared fail-closed outcome validation. Exercise malformed outcomes through directly constructed handlers and align routing/preparation regressions with normal provider availability. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Keep DOM wire checks in the transport and validate L1/L3 once in the existing interaction client. Remove redundant request/discovery checks and the unnecessary validator extraction; retain shared token classification and pre-mutation regression coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Reuse native error codes, statuses, and HRESULT parsing. Retain omission of free-form DPoP error metadata and raw numeric error-code telemetry, with regression coverage for fallback and status mapping. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Restore existing native error details and exception handling for every scheme. Remove the DOM-only response schema, synthetic alias rules, and DPoP-specific extra-parameter stripping. Restore the shared interaction client and request module unchanged from dev, retaining only transport enablement, wire mapping, and internal-state filtering. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The private-preview DOM DPoP browser/WAM integration requires human runtime confirmation because latest-build managed-device and feature-disabled L1 validation remain pending, and the account-less ssoSilent timeout is unexplained.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
Lalima Sharda (lalimasharda)
previously approved these changes
Nov 20, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d23898df-9767-4bfd-85c8-8b156caa2619
Hector Morales (hectormmg)
requested a review
from Lalima Sharda (lalimasharda)
November 20, 2026 21:41
Lalima Sharda (lalimasharda)
approved these changes
Nov 20, 2026
Member
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 4 pipeline(s). |
Hector Morales (hectormmg)
deleted the
copilot/ab-3788751-platform-auth-dom-dpop
branch
November 20, 2026 22:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Implements AB#3788751 - L3-WI-2F Implement DPoP outcome handling for Platform Authentication DOM API.
Enable DOM transport support for the broker DPoP handling introduced in #8789, including the resource-nonce support from #8981.
dev.properties.token_type,properties.DPoP, andproperties.binding_attestedunchanged to shared processing, rather than creating top-level aliases or parsing attestation in the DOM handler.bindingPreferenceSentstate.Validation
msal-commonbeforemsal-browser; browser build passed.--local), Beachball, documentation links, andgit diff --checkpassed.Managed-device validation
VM-validated the DOM L3 DPoP flow using the rebuilt sample from
86cfcfb25, including the review cleanups. Seven scenarios passed: L3 acquisition, redirect, repeated broker requests without MSAL access-token caching, concurrent distinct proofs, Graph nonce challenge/retry (HTTP 200), wrong-method rejection (HTTP 401), and app-provided key rejection.The subsequent
89528a60echange only restores the existing opt-in serialization-error diagnostic and its unit-test assertion; local validation passed. The external sample is not part of this PR.