Page 1 of 1

WVBrowser1BasicAuthenticationRequested

Posted: Mon Aug 15, 2022 6:05 pm
by pushca
Hello. Where can I find out more about the WVBrowser1BasicAuthenticationRequested event. Can I pass the parameters for authorization on the site?

Re: WVBrowser1BasicAuthenticationRequested

Posted: Mon Aug 15, 2022 8:18 pm
by salvadordf
Hi,

The MiniBrowser demo has an example of that event.

You can read more information about that event in the ICoreWebView2_10 documentation :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_10?view=webview2-1.0.1293.44

The documentation about ICoreWebView2BasicAuthenticationRequestedEventArgs is here :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs?view=webview2-1.0.1293.44

The documentation about ICoreWebView2BasicAuthenticationResponse is here :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationresponse?view=webview2-1.0.1293.44

The MiniBrowser demo uses a "Deferral" to show a custom authentication form but you should be able to set the username and password automatically too.

Re: WVBrowser1BasicAuthenticationRequested

Posted: Thu Aug 18, 2022 2:52 am
by pushca
salvadordf wrote: Mon Aug 15, 2022 8:18 pm Hi,

The MiniBrowser demo has an example of that event.

You can read more information about that event in the ICoreWebView2_10 documentation :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_10?view=webview2-1.0.1293.44

The documentation about ICoreWebView2BasicAuthenticationRequestedEventArgs is here :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationrequestedeventargs?view=webview2-1.0.1293.44

The documentation about ICoreWebView2BasicAuthenticationResponse is here :
https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2basicauthenticationresponse?view=webview2-1.0.1293.44

The MiniBrowser demo uses a "Deferral" to show a custom authentication form but you should be able to set the username and password automatically too.
Thanks! You're the best!