interface ICoreWebView2ExperimentalBasicAuthenticationRequestedEventArgs
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalBasicAuthenticationRequestedEventArgs
: public IUnknown
Event args for the BasicAuthenticationRequested event.
Summary
Members | Descriptions |
---|---|
get_Cancel | Cancel the authentication request. |
get_Challenge | The authentication challenge string. |
get_Response | Response to the authentication request with credentials. |
get_Uri | The URI that led to the authentication challenge. |
GetDeferral | Returns an ICoreWebView2Deferral object. |
put_Cancel | Set the Cancel property. |
Will contain the request that led to the HTTP authorization challenge, the challenge and allows the host to provide authentication response or cancel the request.
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | N/A |
WebView2 Win32 Prerelease | 1.0.1056 |
Members
get_Cancel
Cancel the authentication request.
public HRESULT get_Cancel(BOOL * cancel)
False by default. If set to true, Response will be ignored.
get_Challenge
The authentication challenge string.
public HRESULT get_Challenge(LPWSTR * challenge)
get_Response
Response to the authentication request with credentials.
public HRESULT get_Response(ICoreWebView2ExperimentalBasicAuthenticationResponse ** response)
This object will be populated by the app if the host would like to provide authentication credentials.
get_Uri
The URI that led to the authentication challenge.
public HRESULT get_Uri(LPWSTR * value)
GetDeferral
Returns an ICoreWebView2Deferral object.
public HRESULT GetDeferral(ICoreWebView2Deferral ** deferral)
Use this deferral to defer the decision to show the Basic Authentication dialog.
put_Cancel
Set the Cancel property.
public HRESULT put_Cancel(BOOL cancel)