performDigestAuth

Enforces HTTP Digest Auth authentication on the given req/res pair.

Parameters

req HTTPServerRequest

Request object that is to be checked

res HTTPServerResponse

Response object that will be used for authentication errors

info DigestAuthInfo

Digest authentication info object

pwhash DigestHashCallback

A delegate queried for returning the digest password

Return Value

Type: string

Returns the name of the authenticated user.

Throws

Throws a HTTPStatusExeption in case of an authentication failure.

Meta