Signal

FlatpakTransaction::basic-auth-start

since: 1.5.2

Declaration

gboolean
basic_auth_start (
  FlatpakTransaction* self,
  gchar* remote,
  gchar* realm,
  GVariant* options,
  gint id,
  gpointer user_data
)

Description [src]

The ::basic-auth-start signal gets emitted when a basic user/password authentication is needed during the operation. If the caller handles this it should ask the user for the user and password and return TRUE. Once the information is gathered call flatpak_transaction_complete_basic_auth() with it.

If the client does not support basic auth then return FALSE from this signal (or don’t implement it). This will abort the authentication and likely result in the transaction failing (unless the authentication was somehow optional).

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Available since: 1.5.2

Parameters

remote

Type: gchar*

The remote we’re authenticating with.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
realm

Type: gchar*

The url to show.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
options

Type: GVariant

Extra options, currently unused.

The data is owned by the caller of the function.
id

Type: gint

The id of the operation, can be used to finish it.

Return value

Type: gboolean

No description available.