vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Module vibe.http.auth.digest_auth

Implements HTTP Digest Authentication.

This is a minimal implementation based on RFC 2069.

Functions

NameDescription
createDigestAuthHeader(method, url, username, password, auth, cnonce, nc, entityBody) Creates the digest authorization request header.
createDigestPassword(realm, user, password) Creates the digest password from the user name, realm and password.
performDigestAuth(info, pwhash) Returns a request handler that enforces request to be authenticated using HTTP Digest Auth.
performDigestAuth(info, pwhash) Scheduled for deprecation - use a @safe callback instead.
performDigestAuth(req, res, info, pwhash) Enforces HTTP Digest Auth authentication on the given req/res pair.
performDigestAuth(req, res, info, pwhash) Scheduled for deprecation - use a @safe callback instead.

Classes

NameDescription
DigestAuthInfo

Structs

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

Enums

NameDescription
NonceState

Aliases

NameTypeDescription
DigestHashCallback @safe string delegate(string, string)
Authors

Kai Nacke

Copyright

© 2015 RejectedSoftware e.K.

License

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