authenticate


Description:

[ Version ( since = "2.2" ) ]
public virtual signal bool authenticate (AuthenticationRequest request)

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 AuthenticationRequest 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.

Parameters:

request

a AuthenticationRequest

Returns:

true to stop other handlers from being invoked for the event. false to propagate the event further.