new

new(path) Class Public methods Open a digest password database at path

challenge

challenge(req, res, stale=false) Instance Public methods Returns a challenge response which asks for for authentication information

authenticate

authenticate(req, res) Instance Public methods Authenticates a req and returns a 401 Unauthorized using res if the authentication was not correct.

new

new(config, default=Config::DigestAuth) Class Public methods 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 insta

make_passwd

make_passwd(realm, user, pass) Class Public methods Used by UserDB to create a digest password entry

challenge

challenge(req, res) Instance Public methods Returns a challenge response which asks for for authentication information

authenticate

authenticate(req, res) Instance Public methods Authenticates a req and returns a 401 Unauthorized using res if the authentication was not correct.

new

new(config, default=Config::BasicAuth) Class Public methods Creates a new BasicAuth instance. See WEBrick::Config::BasicAuth 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::Htpasswd instance should be used.

make_passwd

make_passwd(realm, user, pass) Class Public methods Used by UserDB to create a basic password entry

escape

escape(string) Class Public methods Escapes &, â, > and < in string