Method

ArrowFlightServerCustomAuthHandleris_valid

Declaration [src]

GBytes*
gaflight_server_custom_auth_handler_is_valid (
  GAFlightServerCustomAuthHandler* handler,
  GAFlightServerCallContext* context,
  GBytes* token,
  GError** error
)

Description [src]

Validates a per-call client token.

Available since:12.0.0

Parameters

context GAFlightServerCallContext
 

A GAFlightServerCallContext.

 The data is owned by the caller of the function.
token GBytes
 

The client token. May be the empty string if the client does not provide a token.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GBytes
 

The identity of the peer, if this authentication method supports it.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.