AuthDomainBasic.setAuthCallback

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 %SOUP_AUTH_DOMAIN_BASIC_AUTH_CALLBACK and %SOUP_AUTH_DOMAIN_BASIC_AUTH_DATA properties, which can also be used to set the callback at construct time.

class AuthDomainBasic
void
setAuthCallback

Parameters

callback SoupAuthDomainBasicAuthCallback

the callback

userData void*

data to pass to @auth_callback

dnotify GDestroyNotify

destroy notifier to free @user_data when @domain is destroyed

Meta