Method

SoupAuthDomainBasicset_auth_callback

Declaration [src]

void
soup_auth_domain_basic_set_auth_callback (
  SoupAuthDomain* domain,
  SoupAuthDomainBasicAuthCallback callback,
  gpointer user_data,
  GDestroyNotify dnotify
)

Description [src]

Sets the callback that domain will use to authenticate incoming requests.

For each request containing authorization, domain will invoke the callback, and then either accept or reject the request based on callbacks return value.

You can also set the auth callback by setting the SoupAuthDomainBasic:auth-callback and SoupAuthDomainBasic:auth-data properties, which can also be used to set the callback at construct time.

Parameters

callback SoupAuthDomainBasicAuthCallback
 

The callback.

user_data gpointer
 

Data to pass to auth_callback.

dnotify GDestroyNotify
 

Destroy notifier to free user_data when domain is destroyed.