~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 3757.3.1.

  • Committer: Vincent Ladeuil
  • Date: 2008-10-05 21:32:00 UTC
  • mto: (3926.1.1 bzr.integration)
  • mto: This revision was merged to the branch mainline in revision 3928.
  • Revision ID: v.ladeuil+lp@free.fr-20081005213200-tbgbnnhq6rjabnlz
Add credential stores plugging.

* tests/test_config.py:
(TestAuthenticationConfigFile.test_unknown_password_encoding):
Test that the user get a meaningful error on typos or installation
problems.
(TestCredentialStoreRegistry): Basic tests for the registry.
(TestPlainTextCredentialStore): Test plain text credential store.

* config.py:
(AuthenticationConfig.decode_password): Go through the credential
store registry to decode the password.
(CredentialStoreRegistry): New registry for credential stores.
(CredentialStore): Abstract base class for credential stores.
(PlainTextCredentialStore): Default, plain text, credential store,
using authentication.conf file itself as storage(i.e actual
behavior).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: