~bzr-pqm/bzr/bzr.dev

  • Committer: Vincent Ladeuil
  • Date: 2007-04-21 20:39:06 UTC
  • mto: (2420.1.21 bzr.http.auth)
  • Revision ID: v.ladeuil+lp@free.fr-20070421203906-hta5jt0nmauyl9qy
Implement digest authentication. Test suite passes. Tested against apache-2.x.

* bzrlib/transport/http/_urllib2_wrappers.py:
(AbstractAuthHandler.auth_required): Do not attempt to
authenticate if we don't have a user. Rework the detection of
already tried authentications. Avoid building the auth header two
times, save the auth info at the right places.
(AbstractAuthHandler.build_auth_header): Add a request parameter
for digest needs.
(BasicAuthHandler.auth_match): Simplify.
(get_digest_algorithm_impls, DigestAuthHandler): Implements client
digest authentication. MD5 and SHA algorithms are supported. Only
'auth' qop is suppoted.
(HTTPBasicAuthHandler, ProxyBasicAuthHandler): Renamed HTTPHandler
and ProxyAuthHandler respectively.
(HTTPBasicAuthHandler, ProxyBasicAuthHandler,
HTTPDigestAuthHandler, ProxyDigestAuthHandler): New classes
implementing the combinations between (http, proxy) and (basic,
digest).
(Opener.__init__): No more handlers in comment ! One TODO less !

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib.__init__): self.base is not suitable for an
auth uri, it can contain decorators.

* bzrlib/tests/test_http.py:
(TestAuth.test_no_user): New test to check the behavior with no
user when authentication is required.

* bzrlib/tests/HTTPTestUtil.py:
(DigestAuthRequestHandler.authorized): Delegate most of the work
to the server that control the needed persistent infos.
(AuthServer): Define an auth_relam attribute.
(DigestAuthServer): Implement a first version of digest
authentication. Only the MD5 algorithm and the 'auth' qop are
supported so far.
(HTTPAuthServer.init_http_auth): New method to simplify
the [http|proxy], [basic|digest] server combinations writing.
Filename Latest Rev Last Changed Committer Comment Size
..
bazaar-vcs.org.kid 2054.2.16 18 years ago Aaron Bentley More updates from review comments 18.3 KB Diff Download File
centralized_workflow.txt 2293.1.6 17 years ago Brad Crittenden post review changes 11.8 KB Diff Download File
configuration.txt 2293.1.6 17 years ago Brad Crittenden post review changes 6.6 KB Diff Download File
default.css 1551.8.18 18 years ago Aaron Bentley Tweak font settings in stylesheet 1.7 KB Diff Download File
http_smart_server.txt 2293.1.6 17 years ago Brad Crittenden post review changes 7 KB Diff Download File
index.txt 2405.2.3 17 years ago Andrew Bennetts Link to HACKING.htm from doc/index.txt. 1.6 KB Diff Download File
plugins.txt 2293.1.6 17 years ago Brad Crittenden post review changes 3.1 KB Diff Download File
README.1st 1861.2.6 18 years ago Alexander Belchenko branding: change Bazaar-NG to Bazaar 904 bytes Diff Download File
server.txt 2293.1.6 17 years ago Brad Crittenden post review changes 2.7 KB Diff Download File
setting_up_email.txt 2293.1.7 17 years ago Aaron Bentley Fix heading formatting 3.8 KB Diff Download File
specifying_revisions.txt 2293.1.6 17 years ago Brad Crittenden post review changes 4.3 KB Diff Download File
tutorial.txt 2393.1.1 17 years ago Elliot Murphy Use double quotes instead of single quotes for bzr 20.1 KB Diff Download File
using_aliases.txt 2293.1.6 17 years ago Brad Crittenden post review changes 2.1 KB Diff Download File
version_info.txt 2293.1.5 17 years ago Brad Crittenden Merge from my LP branch 1.9 KB Diff Download File