Skip to content

Move nagivateToLoginRequestUrl out of Configuration #7855

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

Open
wants to merge 19 commits into
base: msal-v5
Choose a base branch
from

Conversation

hectormmg
Copy link
Member

@hectormmg hectormmg commented Jun 19, 2025

Moves navigateToLoginRequestUrl out of Configuration.BrowserAuthOptions and into RedirectRequest and as an optional parameter in handleRedirectPromise.

hectormmg and others added 14 commits June 5, 2025 13:11
- Suppress false-positive CodeQL finding in NavigationClient
Updates the remove access token cache logic to perform its steps
synchronously. This is a pre-requisite for additional work to handle
cache quota errors in the near future. This requires pushing the POP key
removal (which is asynchronous) to the background, we will track
failures around this in telemetry instead of throwing an error
developers can't resolve anyway.
This PR contains the changelogs and version bumps for the MSAL.js 3P
releases.

Co-authored-by: MSAL.js Release Automation <[email protected]>
Co-authored-by: Sameera Gajjarapu <[email protected]>
1. Updated all msal-node samples to use dotenv 16.5.0

2. Moved dotenv from devDependencies to dependencies in several samples.
This change reflects that dotenv is a runtime requirement for these
samples since they need to load environment variables during actual
execution, not just during development.

3. Run `npm i` in each directory to update package-lock.json files

4. Merged in child: #7824
…Machine Learning Managed Identity (#7616)

Fixes
#7609

If the Machine Learning System Assigned Managed Identity is being used,
the "clientid" request parameter will be set to the
DEFAULT_IDENTITY_CLIENT_ID environment variable instead of being omitted
in the network request.

I manually tested this on two different AML clusters - one with SAMI
enabled and the other with UAMI enabled.
@github-actions github-actions bot added the documentation Related to documentation. label Jun 19, 2025
@hectormmg hectormmg enabled auto-merge (squash) June 19, 2025 21:51
@@ -46,4 +47,5 @@ export type RedirectRequest = Partial<
> & {
scopes: Array<string>;
redirectStartPage?: string;
navigateToLoginRequestUrl?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

It feels wrong for this to be part of RedirectRequest, what needs to happen to make this only applicable to `handleRedirectPromise?

* @returns Token response or null. If the return value is null, then no auth redirect was detected.
*/
async handleRedirectPromise(
hash?: string
hash?: string,
options?: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we create a type for options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation. msal-browser Related to msal-browser package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants