Add design documentation for Mobile MDM Onboarding & In-App Enrollment Flow#1691
Merged
Veena11 merged 2 commits intoveena/mob_onb2from Feb 6, 2026
Merged
Conversation
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add design document for mobile MDM onboarding
Add design documentation for Mobile MDM Onboarding & In-App Enrollment Flow
Feb 6, 2026
| @@ -0,0 +1,266 @@ | |||
| # Design Document: Mobile MDM Onboarding & In-App Enrollment Flow | |||
There was a problem hiding this comment.
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.
Veena11
approved these changes
Feb 6, 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.
Documents the architecture and implementation details of PR #1689's in-app MDM profile installation and enrollment support for MSAL Objective-C.
Added
docs/design/mobile-mdm-onboarding-design.mdcovering:msauth://URL scheme routing for profile installation and enrollment completionStructure
Document includes flow diagrams, component tables, and files changed summary for the 38-file, +2,814/-37 line change in PR #1689.
Original prompt
Add a comprehensive design document as a markdown file to the repository that documents the changes introduced in PR #1689 (
veena/mob_onb2branch). The design doc should be placed atdocs/design/mobile-mdm-onboarding-design.mdand contain the following content exactly:Design Document: Mobile MDM Onboarding & In-App Enrollment Flow
PR: #1689 – Veena/mob onb2
Branch:
veena/mob_onb2→devRepository:
AzureAD/microsoft-authentication-library-common-for-objcAuthor: @swasti29
Status: Draft, Open
Stats: +2,814 additions, -37 deletions across 38 files
1. Executive Summary
This change introduces in-app MDM (Mobile Device Management) profile installation and enrollment support into the MSAL common library for Objective-C. It enables an interactive authentication flow where, when the AAD server signals that an Intune management profile must be installed, the embedded webview (WKWebView) seamlessly transitions to an
ASWebAuthenticationSessionfor profile installation, then returns to the embedded webview to complete the original authentication. Additionally, it introduces Broker Refresh Token (BRT) acquisition logic triggered on specialmsauth://andbrowser://redirects.2. Problem Statement
Currently, when AAD determines that a device requires MDM enrollment (Intune profile installation) before authentication can complete, the library lacks the ability to:
msauth://installProfile) from the server.ASWebAuthenticationSessionfor profile download (which requires system-level handling).msauth://in_app_enrollment_complete).3. Architecture Overview
3.1 High-Level Flow
4. New Components
4.1 New Classes
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.