Skip to content

[Feature]: BasicAuthenticationRequested event and passing the current user credentials #5235

Open
@sergiocapozzi77

Description

@sergiocapozzi77

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions