performDigestAuth - multiple declarations
Function performDigestAuth
Returns a request handler that enforces request to be authenticated using HTTP Digest Auth.
@safe void delegate(HTTPServerRequest, HTTPServerResponse) performDigestAuth
(
DigestAuthInfo info,
scope @safe string delegate(string, string) pwhash
) @safe;
Function performDigestAuth
Scheduled for deprecation - use a @safe
callback instead.
@safe void delegate(HTTPServerRequest, HTTPServerResponse) performDigestAuth
(
DigestAuthInfo info,
scope string delegate(string, string) pwhash
);
Function performDigestAuth
Enforces HTTP Digest Auth authentication on the given req/res pair.
string performDigestAuth
(
scope HTTPServerRequest req,
scope HTTPServerResponse res,
DigestAuthInfo info,
scope @safe string delegate(string, string) pwhash
) @safe;
Parameters
Name | Description |
---|---|
req | Request object that is to be checked |
res | Response object that will be used for authentication errors |
info | Digest authentication info object |
pwhash | A delegate queried for returning the digest password |
Returns
Returns the name of the authenticated user.
Throws
Throws a HTTPStatusExeption in case of an authentication failure.
Function performDigestAuth
Scheduled for deprecation - use a @safe
callback instead.
string performDigestAuth
(
scope HTTPServerRequest req,
scope HTTPServerResponse res,
DigestAuthInfo info,
scope string delegate(string, string) pwhash
);