AuthDomainBasic

Server-side "Basic" authentication.

#SoupAuthDomainBasic handles the server side of HTTP "Basic" (ie, cleartext password) authentication.

Members

Functions

setAuthCallback
void setAuthCallback(soup.types.AuthDomainBasicAuthCallback callback)

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

Inherited Members

From AuthDomain

accepts
string accepts(soup.server_message.ServerMessage msg)

Checks if msg contains appropriate authorization for domain to accept it.

addPath
void addPath(string path)

Adds path to domain.

challenge
void challenge(soup.server_message.ServerMessage msg)

Adds a "WWW-Authenticate" or "Proxy-Authenticate" header to msg.

checkPassword
bool checkPassword(soup.server_message.ServerMessage msg, string username, string password)

Checks if msg authenticates to domain via username and password.

covers
bool covers(soup.server_message.ServerMessage msg)

Checks if domain requires msg to be authenticated (according to its paths and filter function).

getRealm
string getRealm()

Gets the realm name associated with domain.

removePath
void removePath(string path)

Removes path from domain.

setFilter
void setFilter(soup.types.AuthDomainFilter filter)

Adds filter as an authentication filter to domain.

setGenericAuthCallback
void setGenericAuthCallback(soup.types.AuthDomainGenericAuthCallback authCallback)

Sets auth_callback as an authentication-handling callback for domain.