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 propertyAuthDomainBasic:auth-callback and propertyAuthDomainBasic:auth-data properties, which can also be used to set the callback at construct time.

class AuthDomainBasic
void
setAuthCallback

Parameters

callback soup.types.AuthDomainBasicAuthCallback

the callback