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

authCallback
soup.types.AuthDomainBasicAuthCallback authCallback [@property getter]

Get authCallback property.

authCallback
soup.types.AuthDomainBasicAuthCallback authCallback [@property setter]

Set authCallback property.

authData
void* authData [@property getter]

Get authData property.

authData
void* authData [@property setter]

Set authData property.

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.

filter
soup.types.AuthDomainFilter filter [@property getter]

Get filter property.

filter
soup.types.AuthDomainFilter filter [@property setter]

Set filter property.

filterData
void* filterData [@property getter]

Get filterData property.

filterData
void* filterData [@property setter]

Set filterData property.

genericAuthCallback
soup.types.AuthDomainGenericAuthCallback genericAuthCallback [@property getter]

Get genericAuthCallback property.

genericAuthCallback
soup.types.AuthDomainGenericAuthCallback genericAuthCallback [@property setter]

Set genericAuthCallback property.

genericAuthData
void* genericAuthData [@property getter]

Get genericAuthData property.

genericAuthData
void* genericAuthData [@property setter]

Set genericAuthData property.

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.