-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Conversation
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.
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 |
extensions/msal-node-extensions/src/broker/NativeBrokerPlugin.ts
Outdated
Show resolved
Hide resolved
extensions/msal-node-extensions/src/broker/NativeBrokerPlugin.ts
Outdated
Show resolved
Hide resolved
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.
Lgtm!
Sets the redirect URI in the
NativeBrokerPlugin
class based on platform