Skip to content

Comments

Override MSAL's system webview handling#2258

Merged
mjcheetham merged 1 commit intogit-ecosystem:mainfrom
mjcheetham:msal-webview-detect
Feb 5, 2026
Merged

Override MSAL's system webview handling#2258
mjcheetham merged 1 commit intogit-ecosystem:mainfrom
mjcheetham:msal-webview-detect

Conversation

@mjcheetham
Copy link
Contributor

@mjcheetham mjcheetham commented Feb 3, 2026

Since we have special handling on Linux (eg WSL support), we try to use our own logic for launching the user's default web browser for interactive authentication.

In the event we fail to start the browser, we fall back to using MSAL's logic, with a preference of Edge (Chromium-based) - largely because this is the only way to hook ourselves back into MSAL's default handling.

@mjcheetham mjcheetham requested a review from a team as a code owner February 3, 2026 14:36
@mjcheetham
Copy link
Contributor Author

mjcheetham commented Feb 3, 2026

This depends on this other PR completing first.

@mjcheetham mjcheetham added the auth:microsoft Specific to Microsoft AAD/MSA authentication label Feb 3, 2026
@mjcheetham mjcheetham force-pushed the msal-webview-detect branch 2 times, most recently from 76fe22c to 3f8de8b Compare February 4, 2026 16:41
@mjcheetham mjcheetham requested a review from a team as a code owner February 4, 2026 16:41
@mjcheetham mjcheetham marked this pull request as draft February 4, 2026 16:42
@mjcheetham mjcheetham requested review from dscho and mpysson February 4, 2026 17:03
Copy link
Contributor

@dscho dscho left a comment

Choose a reason for hiding this comment

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

This makes sense to me, especially with that excellent commit message, thanks!

@mjcheetham mjcheetham marked this pull request as ready for review February 5, 2026 14:03
@mjcheetham mjcheetham marked this pull request as draft February 5, 2026 14:03
Since we have special handling on Linux (eg WSL support), we try to use
our own logic for launching the user's default web browser for
interactive authentication.

In the event we fail to start the browser, we fall back to using MSAL's
logic, with a preference of Edge (Chromium-based) - largely because this
is the only way to hook ourselves back into MSAL's default handling.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
@mjcheetham mjcheetham marked this pull request as ready for review February 5, 2026 15:57
@mjcheetham mjcheetham merged commit 88522e9 into git-ecosystem:main Feb 5, 2026
10 checks passed
@mjcheetham mjcheetham deleted the msal-webview-detect branch February 5, 2026 15:58
@mjcheetham mjcheetham mentioned this pull request Feb 11, 2026
mjcheetham added a commit that referenced this pull request Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth:microsoft Specific to Microsoft AAD/MSA authentication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants