Skip to content

[MAJOR] [Feature]: ASWebAuth URL Error for Mobile Onboarding#2991

Open
swasti29 wants to merge 4 commits into
devfrom
swagup/mob_on_asweb_error
Open

[MAJOR] [Feature]: ASWebAuth URL Error for Mobile Onboarding#2991
swasti29 wants to merge 4 commits into
devfrom
swagup/mob_on_asweb_error

Conversation

@swasti29
Copy link
Copy Markdown
Contributor

PR Checklist (must be completed before review)

  • All tests pass locally
  • PR size is <= 500 LOC per PR Size Check policy
  • PR is independently mergeable (no hidden dependencies)
  • Appropriate reviewers are assigned
  • PR reviewed by code owner (required if Copilot-generated)
  • SME or Senior IC assigned where required

PR Title Format

Required Format: [Keyword1] [Keyword2]: Description

  • Keyword1: major, minor, or patch (case-insensitive)
  • Keyword2: feature, bugfix, engg, or tests (case-insensitive)

Examples:

  • [MAJOR] [Feature]: new API
  • [minor] [bugfix]: fix crash
  • [PATCH] [tests]: add coverage

Proposed changes

Describe what this PR is trying to do.

Type of change

  • Feature work
  • Bug fix
  • Documentation
  • Engineering change
  • Test
  • Logging/Telemetry

Risk

  • High – Errors could cause MAJOR regression of many scenarios. (Example: new large features or high level infrastructure changes)
  • Medium – Errors could cause regression of 1 or more scenarios. (Example: somewhat complex bug fixes, small new features)
  • Small – No issues are expected. (Example: Very small bug fixes, string changes, or configuration settings changes)

Additional information

Copilot AI review requested due to automatic review settings May 15, 2026 03:21
@swasti29 swasti29 requested a review from a team as a code owner May 15, 2026 03:21
@swasti29 swasti29 requested review from antonioalwan and rokhrest May 15, 2026 03:21
Comment thread MSAL/IdentityCore Outdated
@@ -1 +1 @@
Subproject commit 7ae861d6208e571956655dd3cc83304e248efa61
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This pull request does not update CHANGELOG.md.

Please consider if this change would be noticeable to a partner or user and either update CHANGELOG.md or resolve this conversation.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an MSAL internal error code to represent an invalid ASWebAuthenticationSession URL scenario and wires it up in MSALErrorConverter so IdentityCore can surface that condition through MSAL’s error taxonomy.

Changes:

  • Added MSALInternalErrorInvalidASWebAuthenticationURL to MSALInternalError in the public MSALError.h header.
  • Mapped MSIDErrorInvalidASWebAuthenticationURLMSALInternalErrorInvalidASWebAuthenticationURL in MSALErrorConverter’s error-code mapping table.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
MSAL/src/public/MSALError.h Introduces a new internal error enum value documenting invalid ASWebAuthenticationSession URL usage.
MSAL/src/MSALErrorConverter.m Adds a mapping so the new IdentityCore error code is converted into the MSAL internal error code path.

Comment thread MSAL/src/public/MSALError.h
Comment thread MSAL/src/MSALErrorConverter.m
Copilot AI review requested due to automatic review settings May 19, 2026 08:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Error is thrown when PSSO user registration attempted with no biometrics configured and sekey biometric policy is configured
*/
MSALErrorPSSOBiometricsNotEnrolled = -42744,

MSALErrorPSSOBiometricsNotEnrolled = -42744,

/**
Error is thrown when ASWebAuthenticationSession is attempted to be used with invalid URL, which is not valid https scheme, or the URL is not in allowed domains.
@(MSIDErrorUINotSupportedInExtension): @(MSALInternalErrorUINotSupportedInExtension),
@(MSIDErrorInsufficientDeviceStrength): @(MSALErrorInsufficientDeviceStrength),
@(MSIDErrorMDMEnrollmentCompletedNeedsRetry): @(MSALErrorMDMEnrollmentCompletedNeedsRetry),
@(MSIDErrorInvalidASWebAuthenticationURL): @(MSALInternalErrorInvalidASWebAuthenticationURL),
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