new(config, default=Config::DigestAuth) public

Creates a new DigestAuth instance. Be sure to use the same DigestAuth instance for multiple requests as it saves state between requests in order to perform authentication.

See WEBrick::Config::DigestAuth for default configuration entries

You must supply the following configuration entries:

:Realm

The name of the realm being protected.

:UserDB

A database of usernames and passwords.

A WEBrick::HTTPAuth::Htdigest instance should be used.
Show source
Register or log in to add new notes.