It derives from <GObject>.
Represents an authentication request.
Whenever a client attempts to load a page protected by HTTP
authentication, credentials will need to be provided to authorize
access. To allow the client to decide how it wishes to handle
authentication, WebKit will fire a web-view:authenticate signal with a
WebKitAuthenticationRequest object to provide client side authentication
support. Credentials are exposed through the
<WebKitCredential> object.
In case the client application does not wish to handle this signal WebKit will provide a default handler. To handle authentication asynchronously, simply increase the reference count of the WebKitAuthenticationRequest object.
Authenticate the
<WebKitAuthenticationRequest>.
Authenticate the
<WebKitAuthenticationRequest> using
the <WebKitCredential> supplied. To continue
without credentials, pass #f as credential.
Passed: a
<WebKitAuthenticationRequest>.
Passed, or left out: a <WebKitCredential>, or
#f.
A <WebKitCredential>, or #f
Determine whether this
<WebKitAuthenticationRequest> should
allow the storage of credentials.
Determine whether the authentication method associated with this
<WebKitAuthenticationRequest> should
allow the storage of credentials. This will return #f if WebKit
doesn’t support credential storing, if private browsing is enabled, or
if persistent credential storage has been disabled in
<WebKitWebsiteDataManager>, unless
credentials saving has been explicitly enabled with
authentication-request:set-can-save-credentials.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a boolean.
#t if WebKit can store credentials or #f otherwise.
Cancel the authentication challenge.
This will also cancel the page loading and result in a
web-view:load-failed signal
with a <WebKitNetworkError> of type
cancelled being emitted.
Passed: a
<WebKitAuthenticationRequest>.
Get the <GTlsPasswordFlags> of the
client-certificate-pin-requested
authentication challenge.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a <GTlsPasswordFlags>.
Get the host that this authentication challenge is applicable to.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a string.
The host of self.
Get the port that this authentication challenge is applicable to.
Passed: a
<WebKitAuthenticationRequest>.
Returned: an unsigned 32-bit integer.
The port of self.
Get the <WebKitCredential> of the proposed
authentication challenge.
Get the <WebKitCredential> of the proposed
authentication challenge that was stored from a previous session. The
client can use this directly for authentication or construct their own
<WebKitCredential>.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a <WebKitCredential>.
A <WebKitCredential> encapsulating credential
details or #f if there is no stored credential.
Get the realm that this authentication challenge is applicable to.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a string.
The realm of self.
Get the authentication scheme of the authentication challenge.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a
<WebKitAuthenticationScheme>.
The <WebKitAuthenticationScheme> of
self.
Get the <WebKitSecurityOrigin> that this
authentication challenge is applicable to.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a <WebKitSecurityOrigin>.
a newly created <WebKitSecurityOrigin>.
Determine whether the authentication challenge is associated with a proxy server.
Determine whether the authentication challenge is associated with a proxy server rather than an "origin" server.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a boolean.
#t if authentication is for a proxy or #f otherwise.
Determine whether this this is a first attempt or a retry for this authentication challenge.
Passed: a
<WebKitAuthenticationRequest>.
Returned: a boolean.
#t if authentication attempt is a retry or #f otherwise.
Set whether the authentication method associated with self should allow the storage of credentials.
Set whether the authentication method associated with self should allow the storage of credentials. This should be used by applications handling their own credentials storage to indicate that it should be supported even when internal credential storage is disabled or unsupported. Note that storing of credentials will not be allowed on ephemeral sessions in any case.
Passed: a
<WebKitAuthenticationRequest>.
Passed: a boolean.
value to set
Set the <WebKitCredential> of the proposed
authentication challenge.
Set the <WebKitCredential> of the proposed
authentication challenge that was stored from a previous session. This
should only be used by applications handling their own credential
storage. (When using the default WebKit credential storage,
authentication-request:get-proposed-credential
already contains previously-stored credentials.) Passing a #f
credential will clear the proposed credential.
Passed: a
<WebKitAuthenticationRequest>.
Passed: a <WebKitCredential>.
a <WebKitCredential>, or #f
Connect a handler with (connect object
authentication-request:authenticated handler). It is called as
(handler self credential).
This signal is emitted when the user authentication request succeeded. Applications handling their own credential storage should connect to this signal to save the credentials.
Passed: a
<WebKitAuthenticationRequest>.
Passed: a <WebKitCredential>.
the <WebKitCredential> accepted
Connect a handler with (connect object
authentication-request:cancelled handler). It is called as
(handler self).
This signal is emitted when the user authentication request is cancelled. It allows the application to dismiss its authentication dialog in case of page load failure for example.
Passed: a
<WebKitAuthenticationRequest>.