- createDigestAuthHeader
auto createDigestAuthHeader(HTTPMethod method, U url, string username, string password, DigestAuthParams auth, string cnonce, int nc, ubyte[] entityBody)
Creates the digest authorization request header.
- createDigestPassword
string createDigestPassword(string realm, string user, string password)
Creates the digest password from the user name, realm and password.
- performDigestAuth
HTTPServerRequestDelegate performDigestAuth(DigestAuthInfo info, DigestHashCallback pwhash)
Returns a request handler that enforces request to be authenticated using HTTP Digest Auth.
- performDigestAuth
HTTPServerRequestDelegate performDigestAuth(DigestAuthInfo info, string delegate(string, string) @(system) pwhash)
Scheduled for deprecation - use a @safe callback instead.
- performDigestAuth
string performDigestAuth(HTTPServerRequest req, HTTPServerResponse res, DigestAuthInfo info, DigestHashCallback pwhash)
Enforces HTTP Digest Auth authentication on the given req/res pair.
- performDigestAuth
string performDigestAuth(HTTPServerRequest req, HTTPServerResponse res, DigestAuthInfo info, string delegate(string, string) @(system) pwhash)
Scheduled for deprecation - use a @safe callback instead.
Implements HTTP Digest Authentication.
This is a minimal implementation based on RFC 2069.