[MERGE] Include staging in launchpad-login authentication.
John Arbash Meinel
john at arbash-meinel.com
Thu Oct 23 19:30:48 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley wrote:
> Vincent Ladeuil wrote:
>>>>>>> "aaron" == Aaron Bentley <aaron at aaronbentley.com> writes:
>> <snip/>
>
>> aaron> def _set_auth_user(username, auth=None):
>> aaron> if auth is None:
>> aaron> auth = AuthenticationConfig()
>> aaron> auth.set_credentials(
>> aaron> 'Launchpad', 'bazaar.launchpad.net', username, 'ssh')
>> aaron> + auth.set_credentials(
>> aaron> + 'Launchpad Staging', 'bazaar.staging.launchpad.net', username, 'ssh')
>
>> A simple auth.set_credentials('Launchpad', '.launchpad.net', username, 'ssh')
>> should be enough.
>
> Done.
>
> Aaron
>
- - return {'production': auth.get_user('ssh', 'bazaar.launchpad.net'),
- - 'staging': auth.get_user('ssh',
'bazaar.staging.launchpad.net'),}
+ return auth.get_user('ssh', '.launchpad.net')
^- Would it actually still work to do:
auth.get_user('ssh', 'bazaar.launchpad.net') if we have '.launchpad.net'
set?
I'm just curious if the Auth code is smart enough to do partial matches.
Also, why do ".launchpad.net" and not "launchpad.net" ?
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkAwtgACgkQJdeBCYSNAAOSwQCfZ4oMOD6b8BVGRi9FThfMljOh
q+YAnit/alwXrmQKpKStu70NVWELNexL
=yJkh
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list