MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: Msal authentication Msal via a broker to webview2

Open
#4,895 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?

I have a desktop app that I am successfully authenticating utilizing a broker for authorization through a public client. I have the authentic result; which gives me user identifier, access token, and user principal name. I asked copilot and it recommended adding cookies and then says adding a header to webview2 request handler. All were successful with the addition, but Microsoft when going to office apps like word and outlook it still wants a login. I’ve done this is a react app with local storage or
Persistent caching as well. But winui3 desktops that host a webview2 for its primary functionality doesn’t cross authenticate.
Please help me ?

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

16.2

Framework

WinUI2/UWP

Operating System

Windows 10

OS Version

H22

Repro steps

Tried cookies and request via webview2 apis and handlers

Repros in Edge Browser

Yes, issue can be reproduced in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the WebView2 APIs and request handlers mentioned in the report, then reproduce the behavior in the stated WinUI2/UWP environment with SDK 16.2 on Windows 10. Done means a broker-authenticated session in the desktop app also works when opening Word and Outlook without another login.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
authentication, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.