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
def initialize(config, default=Config::BasicAuth)
check_init(config)
@config = default.dup.update(config)
end