HTTP authentication request More...
Header: | #include <oxideqhttpauthenticationrequest.h> |
Instantiated By: | HttpAuthenticationRequest |
Inherits: | QObject |
~OxideQHttpAuthenticationRequest() | |
QString | host() const |
QString | realm() const |
void | cancelled() const |
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.
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 |
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 |
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() constThis 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.