AuthenticationRequest

class AuthenticationRequest(pointer: <Error class: unknown class><<Error class: unknown class>>)

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.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitAuthenticationRequestPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun authenticate(credential: Credential? = null)

Authenticate the #WebKitAuthenticationRequest.

Link copied to clipboard
fun cancel()

Cancel the authentication challenge.

Link copied to clipboard

Determine whether this #WebKitAuthenticationRequest should allow the storage of credentials.

Link copied to clipboard
fun connectAuthenticated(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (credential: Credential) -> Unit): <Error class: unknown class>

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.

Link copied to clipboard
fun connectCancelled(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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.

Link copied to clipboard
fun getCertificatePinFlags(): <Error class: unknown class>

Get the #GTlsPasswordFlags of the %WEBKIT_AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE_PIN_REQUESTED authentication challenge.

Link copied to clipboard

Get the host that this authentication challenge is applicable to.

Link copied to clipboard
fun getPort(): <Error class: unknown class>

Get the port that this authentication challenge is applicable to.

Link copied to clipboard

Get the #WebKitCredential of the proposed authentication challenge.

Link copied to clipboard

Get the realm that this authentication challenge is applicable to.

Link copied to clipboard

Get the authentication scheme of the authentication challenge.

Link copied to clipboard

Get the #WebKitSecurityOrigin that this authentication challenge is applicable to.

Link copied to clipboard

Determine whether the authentication challenge is associated with a proxy server.

Link copied to clipboard

Determine whether this this is a first attempt or a retry for this authentication challenge.

Link copied to clipboard

Set whether the authentication method associated with @request should allow the storage of credentials.

Link copied to clipboard

Set the #WebKitCredential of the proposed authentication challenge.