Skip to content

Add mapping for MSIDServerInvalidRequest suberror#1659

Open
fidelianawar wants to merge 2 commits intodevfrom
fidelianawar/update_msid_server_invalid_request_error_handling
Open

Add mapping for MSIDServerInvalidRequest suberror#1659
fidelianawar wants to merge 2 commits intodevfrom
fidelianawar/update_msid_server_invalid_request_error_handling

Conversation

@fidelianawar
Copy link
Contributor

@fidelianawar fidelianawar commented Jan 14, 2026

Proposed changes

ESTS returns sub error 50142 for invalid_request, which needs to be mapped for OneAuth layer error handling

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

@fidelianawar fidelianawar requested a review from a team as a code owner January 14, 2026 23:34
@fidelianawar fidelianawar requested review from Copilot, genderbread and josephpab and removed request for Copilot January 14, 2026 23:34
@@ -367,6 +367,9 @@ typedef NS_ENUM(NSInteger, MSIDErrorCode)

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.txt.

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

@fidelianawar fidelianawar changed the title Adding mapping for MSIDServerInvalidRequest suberror Add mapping for MSIDServerInvalidRequest suberror Jan 14, 2026
{
return MSIDErrorCodeForOAuthError(oauthError, defaultCode);
}
if (oauthError && [oauthError caseInsensitiveCompare:@"invalid_request"] == NSOrderedSame && [subError caseInsensitiveCompare:@"50142"] == NSOrderedSame)
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to confirm that we get a error value in number format. Also, does it have to have a minus sign part of it?

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.

2 participants