Skip to content

[minor][feature]: Add more execution flow tag point#1694

Open
kaisong1990 wants to merge 12 commits intodevfrom
kasong/3403593-add-more-flow-tags
Open

[minor][feature]: Add more execution flow tag point#1694
kaisong1990 wants to merge 12 commits intodevfrom
kasong/3403593-add-more-flow-tags

Conversation

@kaisong1990
Copy link
Contributor

@kaisong1990 kaisong1990 commented Feb 11, 2026

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

This pull request introduces comprehensive execution flow logging across multiple controller and request classes in the IdentityCore module. The changes add logging tags at key decision points and completion blocks, with contextual information such as error codes and correlation IDs. This enhancement will improve traceability and debugging for silent and interactive token requests, as well as SSO extension requests.

Execution flow logging enhancements

  • Added MSIDExecutionFlowLogger and MSIDExecutionFlowConstants imports to MSIDRequestControllerFactory.m, MSIDSSORemoteInteractiveTokenRequest.m, and MSIDSSORemoteSilentTokenRequest.m to enable logging functionality. [1] [2] [3]
  • Inserted execution flow logging tags at key points in silent and interactive controller creation logic, including broker usage checks, SSO extension checks, XPC mode checks, fallback handling, and controller completion. Tags include relevant extra info and correlation IDs for improved traceability. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

SSO extension request logging

  • Added execution flow logging tags to MSIDSSORemoteInteractiveTokenRequest.m for authority resolution, operation response handling, and completion blocks, including error codes and correlation IDs. [1] [2] [3]
  • Added execution flow logging tags to MSIDSSORemoteSilentTokenRequest.m for operation response handling and completion blocks, including error codes and correlation IDs. [1] [2]

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

AB#3407672

@@ -25,6 +25,8 @@
#import "MSIDInteractiveTokenRequestParameters.h"

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.

Copy link
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

Adds additional execution-flow tagging in IdentityCore to improve traceability of controller selection and SSO remote token request lifecycles.

Changes:

  • Introduces new execution-flow tag enums and tag-to-string mappers for controller factory, SSO remote interactive, and SSO remote silent flows.
  • Inserts new execution-flow tags at key decision points in MSIDRequestControllerFactory (broker usage, SSO extension/XPC availability, fallback paths, finish).
  • Inserts new execution-flow tags in SSO remote token requests around authority resolution, operation response handling, and completion.

Reviewed changes

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

Show a summary per file
File Description
IdentityCore/src/telemetry/execution_flow/MSIDExecutionFlowConstants.h Adds new tag enums and tag-to-string function declarations for controller factory + SSO remote requests.
IdentityCore/src/telemetry/execution_flow/MSIDExecutionFlowConstants.m Implements tag-to-string mappings for the newly added enums.
IdentityCore/src/requests/broker/MSIDSSORemoteSilentTokenRequest.m Adds execution-flow tags for authority resolution, operation response handling, and completion.
IdentityCore/src/requests/broker/MSIDSSORemoteInteractiveTokenRequest.m Adds execution-flow tags for authority resolution, operation response handling, and completion.
IdentityCore/src/controllers/MSIDRequestControllerFactory.m Adds execution-flow tags around silent/interactive controller selection logic and fallback decisions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

kaisong1990 and others added 7 commits February 10, 2026 23:59
…st.m

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…Request.m

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…TS (#1692)

## 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

Add additional error handling when we receive the following error
combination from ESTS:
- error = MSIDServerInvalidRequest
- error_code = 50142 (SecureChangePasswordDueToConditionalAccess)

We are adding this change such that OneAuth has ability to map this
specific error to interaction required.

Related ADO item:

## Type of change

- [ ] Feature work
- [ ] Bug fix
- [ ] Documentation
- [X] 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)
- [X] Small – No issues are expected. (Example: Very small bug fixes,
string changes, or configuration settings changes)

## Additional information

---------

Co-authored-by: Maximus Agubuzo <maximusagubuzo@MacBook-Air-6.local>
Co-authored-by: agubuzomaximus <agubuzomaximus@gmail.com>
Co-authored-by: Fidelia Nawar <fidelianawar@Fidelias-MacBook-Pro.local>
@kaisong1990 kaisong1990 changed the title [minor][feature] Add more execution flow tag point [minor][feature]: Add more execution flow tag point Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants