class HTTPClient::ProxyDigestAuth
Authentication filter for handling DigestAuth negotiation. Ignores uri argument. Used in ProxyAuth.
Public Instance Methods
challenge(uri, param_str)
click to toggle source
# File lib/httpclient/auth.rb, line 487 def challenge(uri, param_str) synchronize { @challenge = parse_challenge_param(param_str) true } end
get(req)
click to toggle source
overrides HTTPClient::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 471 def get(req) synchronize { param = @challenge return nil unless param user, passwd = @auth return nil unless user calc_cred(req, user, passwd, param) } end
reset_challenge()
click to toggle source
# File lib/httpclient/auth.rb, line 481 def reset_challenge synchronize do @challenge = nil end end
set(uri, user, passwd)
click to toggle source
overrides HTTPClient::DigestAuth#set. sets default user name and password. uri is not used.
# File lib/httpclient/auth.rb, line 462 def set(uri, user, passwd) synchronize do @auth = [user, passwd] end end