comp • gb.qt4.webkit • webview • .auth

Event WebView.Auth (gb.qt4.webkit)

Event Auth ( )

Raised when an HTTP authentication is required.

The Auth property will give you the URL and the realm of the required authentication.

Your job is to fill the User and Password properties.

These information are cached, so the event is not raised anymore as soon as the authentication is valid.

Examples

Public Sub WebView_Auth()

  Dim hView As WebView = Last

  ' FAuth is a form that asks for the user and the password
  If Not FAuth.Run(hView.Auth.Url, hView.Auth.Realm) Then

    hView.Auth.User = FAuth.User
    hView.Auth.Password = FAuth.Password

  Endif

End

See also