Skip to content

Conversation

shylasummers
Copy link
Contributor

@shylasummers shylasummers commented Sep 24, 2025

Removes onRedirectNavigate from endSessionRequest with test and documentation updates.

onRedirectNavigate will remain in Configuration.

@shylasummers shylasummers marked this pull request as ready for review September 29, 2025 21:38
@shylasummers shylasummers requested a review from a team as a code owner September 29, 2025 21:38
@Copilot Copilot AI review requested due to automatic review settings September 29, 2025 21:38
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 removes the onRedirectNavigate parameter from the EndSessionRequest interface, consolidating navigation control to the global configuration level. The change simplifies the logout API by removing request-level navigation overrides while maintaining the callback functionality in the main configuration.

  • Removes onRedirectNavigate from EndSessionRequest type definition
  • Updates sample code to remove usage of the parameter
  • Removes comprehensive test coverage for the parameter functionality

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/msal-browser/src/request/EndSessionRequest.ts Removes onRedirectNavigate property from type definition
lib/msal-browser/src/interaction_client/RedirectClient.ts Simplifies logout logic by removing onRedirectNavigate handling
lib/msal-browser/test/interaction_client/RedirectClient.spec.ts Removes tests for onRedirectNavigate parameter behavior
samples/msal-react-samples/react-router-sample/src/pages/Logout.jsx Removes onRedirectNavigate usage from sample
samples/msal-react-samples/b2c-sample/src/pages/Logout.jsx Removes onRedirectNavigate usage from sample
samples/msal-browser-samples/ChromiumExtensionSample/auth.js Simplifies logout implementation
samples/msal-browser-samples/ChromiumExtensionSample/README.md Updates documentation to reflect API changes
lib/msal-browser/docs/v4-migration.md Documents breaking change for migration
lib/msal-browser/docs/logout.md Removes documentation for removed functionality
lib/msal-browser/apiReview/msal-browser.api.md Updates API surface documentation
change/@azure-msal-browser-88e0dc39-07d7-4080-a5bb-96379561a4ff.json Beachball change file for major version bump

sameerag
sameerag previously approved these changes Oct 1, 2025
Copy link
Member

@sameerag sameerag left a comment

Choose a reason for hiding this comment

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

Added a bunch of text corrections, approved.

);
});

it("doesnt navigate if onRedirectNavigate returns false", (done) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just want to double check: do we have these tests somewhere for using the PCA config option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's further down in the file

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you link me to them, I only see ones for acquireToken not for logout?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, it's for acquireToken. I'll add some logout tests

sameerag
sameerag previously approved these changes Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants