MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Feature]: BasicAuthenticationRequested event and passing the current user credentials
@Lakshmisha-KS is already working on this.
Since May 12, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Describe the feature/enhancement you need
Hi,
I'm working with an internal website that requires authentication via a token obtained through a web request using credentials (withCredentials: true). When accessing this site in Chrome or Edge, the authentication happens seamlessly without any prompts.
However, when accessing the same site through WebView2, a login prompt appears requesting credentials. I also noticed that the BasicAuthenticationRequested event is triggered.
Is there a way to configure WebView2 to automatically use the current user's credentials, similar to how it works in standard browsers?
I’ve already set AllowSingleSignOnUsingOSPrimaryAccount = true, but that doesn’t seem to make a difference.
Interestingly, on my PC the site loads without any login prompt, but on every other machine tested, the login prompt consistently appears.
The scenario/use case where you would use this feature
HAving the login prompt poppping all the time is quite annoying for the users
How important is this request to you?
----Please select----
Suggested implementation
No response
What does your app do? Is there a pending deadline for this request?
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.