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

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.

Meta

License

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

Authors

Kai Nacke