Module
Attributes
Read & Write
The authentication type.
WEBrick::HTTPAuth::BasicAuth
or WEBrick::HTTPAuth::DigestAuth
are built-in.
Instance Methods
lib/webrick/httpauth/userdb.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/webrick/httpauth/userdb.rb, line 48
def get_passwd(realm, user, reload_db=false)
make_passwd(realm, user, self[user])
end
Retrieves a password in realm
for user
for the auth_type
of this database. reload_db
is a dummy value.
lib/webrick/httpauth/userdb.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/webrick/httpauth/userdb.rb, line 32
def make_passwd(realm, user, pass)
@auth_type::make_passwd(realm, user, pass)
end
Creates an obscured password in realm
with user
and password
using the auth_type
of this database.
lib/webrick/httpauth/userdb.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/webrick/httpauth/userdb.rb, line 40
def set_passwd(realm, user, pass)
self[user] = pass
end
Sets a password in realm
with user
and password
for the auth_type
of this database.