Skip to content

Node interop: Add handling for redirect URI based on platform #7908

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

Merged
merged 21 commits into from
Jul 22, 2025

Conversation

shylasummers
Copy link
Contributor

@shylasummers shylasummers commented Jul 7, 2025

Sets the redirect URI in the NativeBrokerPlugin class based on platform

@github-actions github-actions bot added the extensions Related to extensions for the base libraries label Jul 7, 2025
@shylasummers shylasummers changed the title Node interop handling for different platform Redirect URI Node interop: Add handling for redirect URI based on platform Jul 7, 2025
@shylasummers shylasummers marked this pull request as ready for review July 16, 2025 21:44
@Copilot Copilot AI review requested due to automatic review settings July 16, 2025 21:44
Copy link
Contributor

@Copilot Copilot AI left a comment

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 adds platform-specific redirect URI handling to the NativeBrokerPlugin class in msal-node-extensions. The changes implement a new private method that sets different redirect URIs based on the platform (Windows, macOS, or default).

Key changes:

  • Adds a new chooseRedirectUriByPlatform method that returns platform-specific redirect URIs
  • Updates token acquisition methods to use the platform-specific redirect URI
  • Removes the msal-node-extensions sample application entirely

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 8 comments.

File Description
extensions/msal-node-extensions/src/broker/NativeBrokerPlugin.ts Implements platform-specific redirect URI logic in token acquisition methods
extensions/msal-node-extensions/test/broker/NativeBrokerPlugin.spec.ts Adds comprehensive test coverage for new redirect URI functionality across platforms
extensions/samples/msal-node-extensions/* Complete removal of sample application files
change/@azure-msal-node-extensions-*.json Adds changelog entry for the redirect URI feature

Copy link
Member

@hectormmg hectormmg left a comment

Choose a reason for hiding this comment

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

Lgtm!

@shylasummers shylasummers enabled auto-merge (squash) July 21, 2025 23:17
@shylasummers shylasummers merged commit df420da into dev Jul 22, 2025
7 checks passed
@shylasummers shylasummers deleted the nodeInterop branch July 22, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions Related to extensions for the base libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants