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

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.
Show source
Register or log in to add new notes.