### Method

# Soup AuthDomainDigest set_auth_callback

#### Declaration [src]

    void
    soup_auth_domain_digest_set_auth_callback (
      SoupAuthDomain* domain,
      SoupAuthDomainDigestAuthCallback 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 `callback`‘s return value.

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

Sets property | `Soup.AuthDomainDigest:auth-callback`

#### Parameters

`callback`

  Type: `SoupAuthDomainDigestAuthCallback`

  The callback.

`user_data`

  Type: `gpointer`

  Data to pass to `auth_callback`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`dnotify`

  Type: `GDestroyNotify`

  Destroy notifier to free `user_data` when `domain` is destroyed.