HttpAuthenticationRequest QML Type

HTTP authentication request More...

Import Statement: import com.canonical.Oxide 1.15
Since: OxideQt 1.9
Instantiates: OxideQHttpAuthenticationRequest

Properties

Signals

Methods

Detailed Description

HttpAuthenticationRequest represents a request for HTTP authentication credentials. An authentication request is triggered when a site responds with a 401 Unauthorized response and a WWW-Authenticate header.

Request details are provided by host and realm. The application can respond by calling allow with the requested credentials or calling deny to decline the request.

A request can be cancelled by Oxide. In this case, the cancelled signal will be emitted.

If the application destroys the request without responding, the request will be automatically declined.

Property Documentation

host : string

The host that the authentication request is for.

Note: This API is broken, as it currently returns the host/port pair


realm : string

The protection space that this authentication request is for. This is provided by the realm attribute in the WWW-Authenticate HTTP header.


Signal Documentation

cancelled()

This signal is emitted if the request is cancelled by Oxide. This could happen if the application begins another navigation. If the application is displaying a UI to request authentication details, it should hide it if this signal is emitted.


Method Documentation

void allow(string username, string password)

Provide the authentication credentials requested.


void deny()

Decline the request for authentication credentials.