CoreWebView2BasicAuthenticationRequestedEventArgs Class
Event args for the BasicAuthenticationRequested event. 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.
Summary
Members | Description |
---|---|
Cancel | Indicates whether to cancel the authentication request. |
Challenge | The authentication challenge string. |
Response | Response to the authentication request with credentials. |
Uri | The URI that led to the authentication challenge. For proxy authentication requests, this will be the URI of the proxy server. |
GetDeferral | Gets a Deferral object. |
Properties
Cancel
bool Cancel
Indicates whether to cancel the authentication request.
false
by default. If set to true
, Response will be ignored.
Challenge
readonly string Challenge
The authentication challenge string.
Response
readonly CoreWebView2BasicAuthenticationResponse Response
Response to the authentication request with credentials. This object will be populated by the app if the host would like to provide authentication credentials.
Uri
readonly string Uri
The URI that led to the authentication challenge. For proxy authentication requests, this will be the URI of the proxy server.
Methods
GetDeferral
Deferral GetDeferral()
Gets a Deferral object. Use this Deferral to defer the decision to show the Basic Authentication dialog.