Method

ArrowFlightClientauthenticate_basic_token

Declaration [src]

gboolean
gaflight_client_authenticate_basic_token (
  GAFlightClient* client,
  const gchar* user,
  const gchar* password,
  GAFlightCallOptions* options,
  gchar** bearer_name,
  gchar** bearer_value,
  GError** error
)

Description [src]

Authenticates to the server using basic HTTP style authentication.

Available since:12.0.0

Parameters

user const gchar*
 

User name to be used.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
password const gchar*
 

Password to be used.

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

A GAFlightCallOptions.

 The argument can be NULL.
 The data is owned by the caller of the function.
bearer_name gchar**
 

Bearer token name on success.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.
bearer_value gchar**
 

Bearer token value on success.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success, FALSE if there was an error.