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.
AuthenticationRequestGidBuilder builder() static nothrowGet builder for [webkit.authentication_request.AuthenticationRequest] Returns: New builder objectvoid authenticate(webkit.credential.Credential credential = null) nothrowAuthenticate the #WebKitAuthenticationRequest.bool canSaveCredentials() nothrowDetermine whether this #WebKitAuthenticationRequest should allow the storage of credentials.gio.types.TlsPasswordFlags getCertificatePinFlags() nothrowGet the #GTlsPasswordFlags of the [webkit.types.AuthenticationScheme.ClientCertificatePinRequested] authentication challenge. Returns: a #GTlsPasswordFlagsstring getHost() nothrowGet the host that this authentication challenge is applicable to. Returns: The host of request.uint getPort() nothrowGet the port that this authentication challenge is applicable to. Returns: The port of request.webkit.credential.Credential getProposedCredential() nothrowGet the #WebKitCredential of the proposed authentication challenge.string getRealm() nothrowGet the realm that this authentication challenge is applicable to. Returns: The realm of request.webkit.types.AuthenticationScheme getScheme() nothrowGet the authentication scheme of the authentication challenge. Returns: The #WebKitAuthenticationScheme of request.webkit.security_origin.SecurityOrigin getSecurityOrigin() nothrowGet the #WebKitSecurityOrigin that this authentication challenge is applicable to. Returns: a newly created #WebKitSecurityOrigin.bool isForProxy() nothrowDetermine whether the authentication challenge is associated with a proxy server.bool isRetry() nothrowDetermine 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) nothrowSet whether the authentication method associated with request should allow the storage of credentials.void setProposedCredential(webkit.credential.Credential credential) nothrowSet 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) nothrowConnect 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) nothrowConnect to `Cancelled` signal.Fluent builder implementation template for webkit.authentication_request.AuthenticationRequest