Authentication filter for handling DigestAuth negotiation. Ignores uri argument. Used in ProxyAuth.
# File lib/httpclient/auth.rb, line 468 def challenge(uri, param_str) @challenge = parse_challenge_param(param_str) true end
overrides DigestAuth#get. Uses default user name and password regardless of target uri if the proxy has required authentication before
# File lib/httpclient/auth.rb, line 455 def get(req) target_uri = req.header.request_uri param = @challenge return nil unless param user, passwd = @auth return nil unless user calc_cred(req, user, passwd, param) end
# File lib/httpclient/auth.rb, line 464 def reset_challenge @challenge = nil end
overrides DigestAuth#set. sets default user name and password. uri is not used.
# File lib/httpclient/auth.rb, line 447 def set(uri, user, passwd) @set = true @auth = [user, passwd] end
Generated with the Darkfish Rdoc Generator 2.