Repository navigation
Send Native Auth V2 authorize scopes and claims, Fixes AB#3784690 - #3317
Merged
Disha Janardhan (djanardhan98) merged 9 commits intoOct 20, 2026
Merged
Disha Janardhan (djanardhan98) merged 9 commits into
Disha Janardhan (djanardhan98) merged 9 commits into
Conversation
Fixes AB#3784695 Keep raw suberrors and validated attribute details through parser and command results. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0bcd671b-73fa-4ee6-bcd6-65d7eea4d753
Fixes AB#3784690 Initial authorize-challenge carries scopes and claims; token carries scope only. Preserve continuation and local claims metadata. Include JS8898 OTP service-validation parity without altering V1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0bcd671b-73fa-4ee6-bcd6-65d7eea4d753
Fixes AB#3784695 Move diagnostic arguments into their authorize/continue/token APIError constructors; preserve errors-only scope behavior. Independently compiled and covered by focused MSAL/Common suites. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0bcd671b-73fa-4ee6-bcd6-65d7eea4d753
Fixes AB#3784695 Move diagnostic arguments into their authorize/continue/token APIError constructors; preserve errors-only scope behavior. Independently compiled and covered by focused MSAL/Common suites. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0bcd671b-73fa-4ee6-bcd6-65d7eea4d753 (cherry picked from commit 3265533)
Fixes AB#3784690 Canonicalize recognized OIDC defaults to lowercase exactly once at entry and token exchange, preserving resource scope casing, order and duplicates. Keep V1 behavior unchanged. Cover all three entry and token paths with red-green regressions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0bcd671b-73fa-4ee6-bcd6-65d7eea4d753
Fixes AB#3784690 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0bcd671b-73fa-4ee6-bcd6-65d7eea4d753
Preserve authorize scopes and claims while adopting the current unified-error diagnostics. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: eafe5634-2142-4235-a7dc-d26bc1baa0d5
Disha Janardhan (djanardhan98)
marked this pull request as ready for review
October 19, 2026 20:10
Disha Janardhan (djanardhan98)
requested a review
from a team
as a code owner
October 19, 2026 20:10
Silviu Petrescu (spetrescu84)
previously approved these changes
Oct 20, 2026
Disha Janardhan (djanardhan98)
changed the base branch from
djanardhan/native-auth-v2-unified-errors
to
dev
October 20, 2026 16:29
Disha Janardhan (djanardhan98)
dismissed
Silviu Petrescu (spetrescu84)’s stale review
October 20, 2026 16:29
The base branch was changed.
Disha Janardhan (djanardhan98)
enabled auto-merge (squash)
October 20, 2026 16:31
Silviu Petrescu (spetrescu84)
approved these changes
Oct 20, 2026
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
Port Common Native Auth V2 authorize-request inputs and related OTP parity from AzureAD/microsoft-authentication-library-for-js#8898.
Approved wire policy: scopes and optional claims at initial authorize-challenge, scopes without claims at token exchange, neither on other intermediate requests. This intentionally follows JS behavior rather than the work item's literal entry-only scope wording.
Fixes AB#3784690
Dependencies
Stacked on the separate Common unified-errors PR: #3307. Its base is the errors branch so the workstream diff stays isolated.
Consumed by the paired MSAL authorize-inputs PR: AzureAD/microsoft-authentication-library-for-android#2619.
Merge the errors dependency first, then retarget this PR to
dev.Validation
Scopes/claims snapshot: 661 selected unit tests passed (218 MSAL, 349 Common4j, 94 Common Android), with zero failures, errors, or skips in the final XML reports.
Coverage includes all three initial entries and token paths, claims wire encoding, continuation scope retention/override, canonical OIDC defaults with preserved resource casing/duplicates, empty OTP submission, and standalone V1 regressions.
Final integrated-stack PR2601 validation: 20 live signup/reset E2E tests and 4 recorder tests passed, with 3 known duplicate-account service-test skips. One Mail.tm
/accountsHTTP 429 attempt passed on the existing automatic retry; no assertions or retry configuration were changed.