-
Notifications
You must be signed in to change notification settings - Fork 36
Add generic webview session manager for enrollment and registration flows #1672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
20
commits into
dev
Choose a base branch
from
copilot/update-intune-enrollment-flow
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
| @@ -0,0 +1,61 @@ | |||
| //------------------------------------------------------------------------------ | |||
There was a problem hiding this comment.
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.
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
…ent callbacks Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
…Session header injection Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement updates for Intune enrollment flow requirements
Add Intune enrollment flow support with header capture and async action callbacks
Jan 24, 2026
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Copilot
AI
changed the title
Add Intune enrollment flow support with header capture and async action callbacks
Refactor webview extensions from vendor-specific to generic framework
Jan 24, 2026
…lers Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Copilot
AI
changed the title
Refactor webview extensions from vendor-specific to generic framework
Refactor webview extensions to manager-based composition for cross-controller code sharing
Jan 24, 2026
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Copilot
AI
changed the title
Refactor webview extensions to manager-based composition for cross-controller code sharing
Refactor webview session management to enable cross-repository code sharing
Jan 24, 2026
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Co-authored-by: Veena11 <9446116+Veena11@users.noreply.github.com>
Copilot
AI
changed the title
Refactor webview session management to enable cross-repository code sharing
Add generic webview session manager for enrollment and registration flows
Jan 24, 2026
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.
Overview
Implements extensible webview session management for enrollment flows (Intune, MDM, device registration). Enables code sharing between
MSIDLocalInteractiveController(IdentityCore) andMSIDBrokerInteractiveController(broker repo) via composition.Changes
Core Implementation
MSIDWebviewSessionManager- Standalone manager class with all session logicMSIDWebviewSessionControlling- Protocol for controller integrationHelper Types
MSIDWebviewAction- Action object returned from async URL callbacksMSIDWebviewResponseEvent- Structured response events from webview navigationMSIDBRTAttemptTracker- Tracks BRT acquisition attempts (max 2 per session)MSIDResponseHeaderStore- Session-level header storage with case-insensitive lookupWebview Extensions
MSIDAADOAuthEmbeddedWebviewController- HTTP 302 response header capture, async action callbacks formsauth://andbrowser://URLsMSIDASWebAuthenticationSessionHandler- Additional header support (iOS 17.4+)MSIDSystemWebViewControllerFactory- Header injection plumbingConfiguration
capturedHeaderKeys- Configurable header capture (defaults:x-ms-clitelem,x-install-url,authorization)customURLActionHandler- Pluggable block for custom URL handlingenroll,installProfile,profileInstalledUsage
Architecture
Testing
Documentation
docs/intune-enrollment-webview-flow.md- Architecture and sequence diagramsMANAGER_USAGE_GUIDE.md- Integration guideFINAL_ARCHITECTURE.md- Design overviewOriginal prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.