Skip to content

Remove classic Microsoft authentication implementation - #276787

Merged
TylerLeonhardt merged 4 commits into
mainfrom
copilot/remove-classic-auth-implementation
Nov 11, 2025
Merged

TylerLeonhardt merged 4 commits into
mainfrom
copilot/remove-classic-auth-implementation

Conversation

Copilot AI commented Nov 11, 2025 •

Copy link
Copy Markdown
Contributor

Removes the deprecated classic (AAD-based) authentication flow, retaining only MSAL-based implementations (msal and msal-no-broker).

Changes

  • Deleted files (1,157 lines):

    • extensionV1.ts - Classic authentication provider
    • AADHelper.ts - Azure AD service implementation
  • Configuration:

    • Removed classic option from settings enum
    • Removed associated descriptions and telemetry
  • Extension activation:

    • Removed web environment check that forced classic implementation
    • Simplified activation logic (no longer branches on classic vs MSAL)
    • Removed conditional deactivation
  • Migration support preserved:

    • Extracted IStoredSession interface to storedSession.ts
    • Still used by MSAL provider to migrate sessions from classic flow

Migration Path

Users on classic will automatically use msal (default) or can opt into msal-no-broker if 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:

  1. "I would like to remove the classic implementation of microsoft authentication." - User's primary request.
  2. "there is no web implementation anymore" - User confirming the current state of the implementation.
  3. "yes" - User's agreement to proceed with the removal.
  4. "inline" - User specifying the type of implementation desired.
  5. "tell me the plan" - User requesting a plan for the implementation.
  6. "So what's the plan" - User reiterating their request for a plan.
  7. "Start implementation" - User instructing to begin the implementation process.]

[Technical Inventory:

  • Repository: vscode
  • Owner: microsoft
  • Current branch: main
  • Default branch: main
  • Focus on Microsoft authentication implementation, specifically the removal of the classic version.]

[Code Archaeology:

  • Current file: /Users/tyleonha/Code/Microsoft/vscode/extensions/microsoft-authentication/src/extensionData_2025-11-11_11-30-07.md
  • No specific code changes or functions were detailed in the conversation, but the focus is on the removal of the classic implementation.]

[Progress Assessment:

  • Completed Tasks: User has confirmed the removal of the classic implementation and agreed to the inline implementation.
  • Partially Complete Work: The implementation process has been initiated but not yet detailed or executed.]

[Context Validation: All critical information for continuation is captured, including user requests and confirmations regarding the implementation of Microsoft authentication.]

[Recent Commands Analysis:

  • Last Agent Commands: User requested to "Start implementation."
  • Tool Results Summary: No specific tool results were provided as the conversation focused on user requests and confirmations.
  • Pre-Summary State: The agent was actively preparing to begin the implementation of the removal of the classic Microsoft authentication when the token budget was exceeded.
  • Operation Context: The commands executed were directly related to the user's goal of removing the classic implementation 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.
  1. Technical Foundation:
  • Repository: vscode
  • Owner: microsoft
  • Current branch: main
  • Default branch: main
  1. 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 classic implementation.
  • Key Code Segments: Not specified in the conversation.
  • Dependencies: Related to Microsoft authentication implementation.
  1. Problem Resolution:
  • Issues Encountered: None explicitly mentioned.
  • Solutions Implemented: User confirmed the removal of the classic implementation.
  • Debugging Context: No ongoing troubleshooting efforts were discussed.
  • Lessons Learned: User's clarity on the current state of implementations.
  1. Progress Tracking:
  • Completed Tasks: User has confirmed the removal of the classic implementation.
  • Partially Complete Work: Implementation process has been initiated but not detailed.
  • Validated Outcomes: User's agreement to proceed indicates readiness for the next steps.
  1. Active Work State:
  • Current Focus: User was preparing to start the implementation of the removal of the classic Microsoft authentication.
  • 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."
  1. 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 classic implementation.
  1. Continuation Plan:
  • Pending Task...

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.

Copilot AI changed the title [WIP] Remove classic implementation of Microsoft authentication Remove classic Microsoft authentication implementation Nov 11, 2025
Copilot AI requested a review from TylerLeonhardt November 11, 2025 19:55
@TylerLeonhardt
TylerLeonhardt marked this pull request as ready for review November 11, 2025 21:36
Copilot AI review requested due to automatic review settings November 11, 2025 21:36
@TylerLeonhardt
TylerLeonhardt enabled auto-merge (squash) November 11, 2025 21:37
@vs-code-engineering vs-code-engineering Bot added this to the November 2025 milestone Nov 11, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 IStoredSession interface for backward compatibility during migration
  • Updated configuration to remove classic option 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
TylerLeonhardt merged commit c6464f8 into main Nov 11, 2025
@TylerLeonhardt
TylerLeonhardt deleted the copilot/remove-classic-auth-implementation branch November 11, 2025 23:18
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Dec 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants