IWebViewLoginRequest EventAwesomium.NET 1.7.6Awesomium.NET
Occurs when the page needs authentication from the user (for example, Basic HTTP Auth, NTLM Auth, etc.).

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version:

event LoginRequestEventHandler LoginRequest


Type: Awesomium.CoreLoginRequestEventHandler

The table below presents the way the LoginRequest event is handled, when Handled is set to Default (default):
Wrapper Behavior
WebView No default handling is provided for the windowless WebView. If Handled is set to Default (default), the event is immediately canceled.
Technology specific WebControls. If Handled is set to Default (default), controls will display their predefined UI.
Applications can handle the LoginRequest event either modally or non-modally. Only default or modal handling is officially supported in Awesomium.NET.

The table below shows the methods of handling the LoginRequest event:

Setting Handling
Modal Developers should provide a response through the Username and Password properties, before the event handler exits.
NotModal (Not officially supported in Awesomium.NET) No response will be provided for the request. Developers should later provide a response themselves using any of the following methods:
Caution note Caution
This technique is not officially supported in Awesomium.NET. Therefore, the members above are not directly available through the predefined IWebView wrappers. You will have to cast the wrapper to IWebView, to access these members.
Note Note
Note that Cancel always takes precedence over Handled. If Cancel is set to true, the request will be canceled immediately and the value of Handled (or any other member), is ignored.
See Also