1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
module WEBrick
module HTTPAuth
class BasicAuth
@config: Hash[Symbol, untyped]
include Authenticator
AuthScheme: String
def self.make_passwd: (String? realm, String? user, String? pass) -> String
attr_reader realm: String?
attr_reader userdb: UserDB
attr_reader logger: Log
def initialize: (Hash[Symbol, untyped] config, ?Hash[Symbol, untyped] default) -> void
def authenticate: (HTTPRequest req, HTTPResponse res) -> void
def challenge: (HTTPRequest req, HTTPResponse res) -> bot
end
class ProxyBasicAuth < BasicAuth
include ProxyAuthenticator
end
end
end
|