connectAuthenticate

fun connectAuthenticate(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (request: AuthenticationRequest) -> Boolean): <Error class: unknown class>

This signal is emitted when the user is challenged with HTTP authentication. To let the application access or supply the credentials as well as to allow the client application to either cancel the request or perform the authentication, the signal will pass an instance of the #WebKitAuthenticationRequest in the @request argument. To handle this signal asynchronously you should keep a ref of the request and return true. To disable HTTP authentication entirely, connect to this signal and simply return true.

The default signal handler will run a default authentication dialog asynchronously for the user to interact with.

Since

2.2

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: request a #WebKitAuthenticationRequest. Returns true to stop other handlers from being invoked for the event. false to propagate the event further.