WVBrowser1BasicAuthenticationRequested

Post Reply
pushca
Posts: 37
Joined: Sat Dec 04, 2021 5:09 pm

WVBrowser1BasicAuthenticationRequested

Post by pushca »

Hello. Where can I find out more about the WVBrowser1BasicAuthenticationRequested event. Can I pass the parameters for authorization on the site?
User avatar
salvadordf
Posts: 4118
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: WVBrowser1BasicAuthenticationRequested

Post 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.
pushca
Posts: 37
Joined: Sat Dec 04, 2021 5:09 pm

Re: WVBrowser1BasicAuthenticationRequested

Post 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!
Post Reply