webkit.authentication_request
Module for [AuthenticationRequest] class
Types 3
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 #WebKitWebView::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.
AuthenticationRequest self()Returns `this`, for use in `with` statements.AuthenticationRequestGidBuilder builder()Get builder for [webkit.authentication_request.AuthenticationRequest] Returns: New builder objectvoid authenticate(webkit.credential.Credential credential = null)Authenticate the #WebKitAuthenticationRequest.bool canSaveCredentials()Determine whether this #WebKitAuthenticationRequest should allow the storage of credentials.void cancel()Cancel the authentication challenge.gio.types.TlsPasswordFlags getCertificatePinFlags()Get the #GTlsPasswordFlags of the [webkit.types.AuthenticationScheme.ClientCertificatePinRequested] authentication challenge. Returns: a #GTlsPasswordFlagsstring getHost()Get the host that this authentication challenge is applicable to. Returns: The host of request.uint getPort()Get the port that this authentication challenge is applicable to. Returns: The port of request.webkit.credential.Credential getProposedCredential()Get the #WebKitCredential of the proposed authentication challenge.string getRealm()Get the realm that this authentication challenge is applicable to. Returns: The realm of request.webkit.types.AuthenticationScheme getScheme()Get the authentication scheme of the authentication challenge. Returns: The #WebKitAuthenticationScheme of request.webkit.security_origin.SecurityOrigin getSecurityOrigin()Get the #WebKitSecurityOrigin that this authentication challenge is applicable to. Returns: a newly created #WebKitSecurityOrigin.bool isForProxy()Determine whether the authentication challenge is associated with a proxy server.bool isRetry()Determine whether this this is a first attempt or a retry for this authentication challenge. Returns: true if authentication attempt is a retry or false otherwise.void setCanSaveCredentials(bool enabled)Set whether the authentication method associated with request should allow the storage of credentials.void setProposedCredential(webkit.credential.Credential credential)Set the #WebKitCredential of the proposed authentication challenge.gulong connectAuthenticated(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == webkit.credential.Credential)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.authentication_request.AuthenticationRequest)))
&& Parameters!T.length < 3)Connect to `Authenticated` signal.gulong connectCancelled(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.authentication_request.AuthenticationRequest)))
&& Parameters!T.length < 2)Connect to `Cancelled` signal.Fluent builder for [webkit.authentication_request.AuthenticationRequest]