OxideQHttpAuthenticationRequest Class

HTTP authentication request More...

Header: #include <oxideqhttpauthenticationrequest.h>
Instantiated By: HttpAuthenticationRequest
Inherits: QObject

Properties

Public Functions

~OxideQHttpAuthenticationRequest()
QString host() const
QString realm() const

Public Slots

void allow(const QString & username, const QString & password)
void deny()

Signals

void cancelled() const

Additional Inherited Members

Detailed Description

HTTP authentication request

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

Property Documentation

host : const QString

The host that the authentication request is for.

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

Access functions:

QString host() const

realm : const QString

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

Access functions:

QString realm() const

Member Function Documentation

OxideQHttpAuthenticationRequest::~OxideQHttpAuthenticationRequest()

Destroy this authentication request. If the application has not responded yet, the request will be automatically denied.

[slot] void OxideQHttpAuthenticationRequest::allow(const QString & username, const QString & password)

Provide the authentication credentials requested.

[signal] void OxideQHttpAuthenticationRequest::cancelled() const

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.

[slot] void OxideQHttpAuthenticationRequest::deny()

Decline the request for authentication credentials.