AuthDomainBasic

Server-side "Basic" authentication.

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

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

self
AuthDomainBasic self()

Returns this, for use in with statements.

setAuthCallback
void setAuthCallback(soup.types.AuthDomainBasicAuthCallback callback)

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

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From AuthDomain

getGType
GType getGType()
gType
GType gType [@property getter]
self
AuthDomain self()

Returns this, for use in with statements.

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.