Add wait on Get Access screen to handle duplicate APP flow trigger, Fixes AB#3667378#3166
Open
mohitc1 wants to merge 5 commits into
Open
Add wait on Get Access screen to handle duplicate APP flow trigger, Fixes AB#3667378#3166mohitc1 wants to merge 5 commits into
mohitc1 wants to merge 5 commits into
Conversation
Due to a known issue in Company Portal, the App Protection Policy flow can trigger twice. The second instance only appears while still on the Get Access screen. By waiting 10s before clicking Continue, we absorb the potential second instance so the PIN flow only runs once. AB#3667378
|
✅ Work item link check complete. Description contains link AB#3667378 to an Azure Boards work item. |
|
❌ Work item link check failed. Description contains AB#3667378 but the Bot could not link it to an Azure Boards work item. Click here to learn more. |
|
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
|
✅ Work item link check complete. Description contains link AB#3673330 to an Azure Boards work item. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Company Portal UI automation for App Protection Policy handling to reduce flakiness caused by a known duplicate APP flow trigger while on the “Get Access” screen.
Changes:
- Add a fixed 10s wait on the “Get Access” screen before clicking Continue to absorb a potential second APP flow instance.
- Remove the previous “second PIN screen” detection/retry logic after PIN entry.
- Update inline comments/logging to document the new mitigation approach.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
fadidurah
approved these changes
Jun 23, 2026
…s://github.com/AzureAD/microsoft-authentication-library-common-for-android into mchand/app-protection-policy-pin-resiliency-v2
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.
Due to a known issue in Company Portal, the App Protection Policy flow can trigger twice. The second instance only appears while still on the Get Access screen. By waiting 10s before clicking Continue, we absorb the potential second instance so the PIN flow only runs once.
Fixes AB#3673330