vibe.http.auth.digest_auth

Implements HTTP Digest Authentication.

This is a minimal implementation based on RFC 2069.

Members

Aliases

DigestHashCallback
alias DigestHashCallback = string delegate(string realm, string user)
Undocumented in source.

Classes

DigestAuthInfo
class DigestAuthInfo
Undocumented in source.

Enums

NonceState
enum NonceState
Undocumented in source.

Functions

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.

Structs

DigestAuthParams
struct DigestAuthParams

Structure which describes requirements of the digest authentication - see https://tools.ietf.org/html/rfc2617

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Kai Nacke