Lines Matching refs:Auth
829 # XXX this allows for multiple auth-schemes, but will stupidly pick
837 # XXX could pre-emptively send auth info already accepted (RFC 2617,
859 raise HTTPError(req.get_full_url(), 401, "basic auth failed",
869 warnings.warn("Basic Auth Realm was unquoted",
881 auth = 'Basic %s' % base64.b64encode(raw).strip()
882 if req.headers.get(self.auth_header, None) == auth:
884 req.add_unredirected_header(self.auth_header, auth)
941 # XXX qop="auth-int" supports is shaky
963 raise HTTPError(req.get_full_url(), 401, "digest auth failed",
972 def retry_http_digest_auth(self, req, auth):
973 token, challenge = auth.split(' ', 1)
975 auth = self.get_authorization(req, chal)
976 if auth:
977 auth_val = 'Digest %s' % auth
1024 if qop == 'auth':
1038 # XXX handle auth-int.
1052 base += ', qop=auth, nc=%s, cnonce="%s"' % (ncvalue, cnonce)
1080 handler_order = 490 # before Basic auth
1093 handler_order = 490 # before Basic auth