MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
449 stars 53 forks source link

Get proxy server and port in OnBasicAuthenicationRequested #3250

Open dfghj44444 opened 1 year ago

dfghj44444 commented 1 year ago

I'm using ICoreWebView2BasicAuthenticationRequestedEventHandler to handle proxy uname and passwd filling, however, neither this API cannot candidate the auth event is proxy event, nor get the proxy server and port, it only give a url and challenge, this is not enough for me, in cef the corresponding callback is GetAuthCredentials(CefRefPtr browser, const CefString& origin_url, bool isProxy, const CefString& host, int port, const CefString& realm, const CefString& scheme, CefRefPtr callback) this provide proxy host and port, and a flag isProxy. I need this info, hope webview2 can provide too, or any workaround

AB#43602717

novac42 commented 1 year ago

Thanks for reaching out. I've assigned this to a dev that can help follow up on this.

monica-ch commented 1 year ago

@dfghj44444 I've added the feature request to our backlog. However, there is a change in 111.0.1644.0+ where the Uri of the event arg will be the proxy server uri if the challenge comes from proxy instead of the actual site uri. Can you identify them from the URL?

dfghj44444 commented 1 year ago

@monica-ch thanks monica, I tried version 112(canary), the proxy uri helps a lot, and I can identity IP uri as proxy server for a temporary solution.