Repository navigation
Remove classic Microsoft authentication implementation - #276787
Merged
Merged
Conversation
Co-authored-by: TylerLeonhardt <[email protected]>
Copilot
AI
changed the title
[WIP] Remove classic implementation of Microsoft authentication
Remove classic Microsoft authentication implementation
Nov 11, 2025
TylerLeonhardt
marked this pull request as ready for review
November 11, 2025 21:36
TylerLeonhardt
enabled auto-merge (squash)
November 11, 2025 21:37
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes the deprecated classic (AAD-based) Microsoft authentication implementation, simplifying the codebase to only support MSAL-based flows (msal and msal-no-broker). The change eliminates over 1,150 lines of legacy code while preserving session migration support.
Key changes:
- Removed classic authentication provider implementation and related files
- Consolidated extension activation logic by inlining MSAL-only implementation
- Extracted
IStoredSessioninterface for backward compatibility during migration - Updated configuration to remove
classicoption from settings
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| extension.ts | Inlined MSAL activation logic, removed classic/web environment branching, simplified to single implementation |
| extensionV1.ts | Deleted - classic authentication provider implementation (193 lines) |
| extensionV2.ts | Deleted - MSAL authentication provider wrapper (102 lines) |
| AADHelper.ts | Deleted - Azure AD service implementation (963 lines) |
| node/authProvider.ts | Added inline IStoredSession interface definition for migration support |
| common/telemetryReporter.ts | Removed sendActivatedWithClassicImplementationEvent telemetry method |
| package.json | Removed classic from implementation enum options |
| package.nls.json | Removed classic descriptions and deprecation notice |
TylerLeonhardt
approved these changes
Nov 11, 2025
Matt Bierner (mjbvz)
approved these changes
Nov 11, 2025
TylerLeonhardt
deleted the
copilot/remove-classic-auth-implementation
branch
November 11, 2025 23:18
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Removes the deprecated classic (AAD-based) authentication flow, retaining only MSAL-based implementations (
msalandmsal-no-broker).Changes
Deleted files (1,157 lines):
extensionV1.ts- Classic authentication providerAADHelper.ts- Azure AD service implementationConfiguration:
classicoption from settings enumExtension activation:
Migration support preserved:
IStoredSessioninterface tostoredSession.tsMigration Path
Users on
classicwill automatically usemsal(default) or can opt intomsal-no-brokerif experiencing broker issues. Session migration from classic to MSAL handled transparently via_migrateSessions().Net: -1,170 lines across 8 files.
Original prompt
Start implementation
[Chronological Review: The conversation began with the user requesting to remove the `classic` implementation of Microsoft authentication. The user confirmed that there is no web implementation anymore and expressed agreement to proceed with the removal. The user then requested an inline implementation and confirmed their agreement to both inline and other unspecified aspects. The user asked for the plan, confirming their readiness to proceed. Finally, the user instructed to start the implementation.][Intent Mapping:
classicimplementation of microsoft authentication." - User's primary request.[Technical Inventory:
classicversion.][Code Archaeology:
classicimplementation.][Progress Assessment:
classicimplementation and agreed to the inline implementation.[Context Validation: All critical information for continuation is captured, including user requests and confirmations regarding the implementation of Microsoft authentication.]
[Recent Commands Analysis:
classicMicrosoft authentication when the token budget was exceeded.classicimplementation and moving towards a new inline implementation.]1. Conversation Overview: - Primary Objectives: - "I would like to remove the `classic` implementation of microsoft authentication." - "Start implementation." - Session Context: The conversation focused on the user's intent to remove the `classic` implementation of Microsoft authentication, confirming the absence of a web implementation, and moving towards an inline implementation. - User Intent Evolution: The user consistently expressed agreement and readiness to proceed with the removal and implementation.- Technical Foundation:
- Repository: vscode
- Owner: microsoft
- Current branch: main
- Default branch: main
- Codebase Status:
- File Name: extensionData_2025-11-11_11-30-07.md
- Purpose: Documenting the current state and changes related to Microsoft authentication.
- Current State: User has confirmed the removal of the
- Key Code Segments: Not specified in the conversation.
- Dependencies: Related to Microsoft authentication implementation.
- Problem Resolution:
- Issues Encountered: None explicitly mentioned.
- Solutions Implemented: User confirmed the removal of the
- Debugging Context: No ongoing troubleshooting efforts were discussed.
- Lessons Learned: User's clarity on the current state of implementations.
- Progress Tracking:
- Completed Tasks: User has confirmed the removal of the
- Partially Complete Work: Implementation process has been initiated but not detailed.
- Validated Outcomes: User's agreement to proceed indicates readiness for the next steps.
- Active Work State:
- Current Focus: User was preparing to start the implementation of the removal of the
- Recent Context: User confirmed their readiness to proceed with the implementation.
- Working Code: No specific code snippets were discussed recently.
- Immediate Context: User instructed to "Start implementation."
- Recent Operations:
- Last Agent Commands: User requested to "Start implementation."
- Tool Results Summary: No specific tool results were provided.
- Pre-Summary State: The agent was preparing to begin the implementation process.
- Operation Context: The commands executed were directly related to the user's goal of removing the
- Continuation Plan:
- Pending Task...
classicimplementation.classicimplementation.classicimplementation.classicMicrosoft authentication.classicimplementation.Created from VS Code via the GitHub Pull Request extension.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.