diff options
| author | Ahmad Hassan <ahmad.hassan@hp.com> | 2011-08-01 17:16:49 +0100 |
|---|---|---|
| committer | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2011-10-05 15:02:50 +0100 |
| commit | beee11edbfdd82cd81bc9c0fd75912c167892c2b (patch) | |
| tree | b26d64ebbe18215ea7d3d226f00223c126d0a89d /nova/auth | |
| parent | 981f52794ed41b6f25dfc4a25b4b736e8f030a0f (diff) | |
| download | nova-beee11edbfdd82cd81bc9c0fd75912c167892c2b.tar.gz nova-beee11edbfdd82cd81bc9c0fd75912c167892c2b.tar.xz nova-beee11edbfdd82cd81bc9c0fd75912c167892c2b.zip | |
Stop returning correct password on api calls
Captured invalid signature exception in authentication step, so that
the problem is not returning exception to user, revealing the real
password.
Fixes bug 868360.
Change-Id: Idb31f076a7b14309f0fda698261de816924da354
Diffstat (limited to 'nova/auth')
| -rw-r--r-- | nova/auth/manager.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/nova/auth/manager.py b/nova/auth/manager.py index 44e6e11ac..e0504464e 100644 --- a/nova/auth/manager.py +++ b/nova/auth/manager.py @@ -149,11 +149,7 @@ class User(AuthBase): return AuthManager().is_project_manager(self, project) def __repr__(self): - return "User('%s', '%s', '%s', '%s', %s)" % (self.id, - self.name, - self.access, - self.secret, - self.admin) + return "User('%s', '%s')" % (self.id, self.name) class Project(AuthBase): @@ -200,9 +196,7 @@ class Project(AuthBase): return AuthManager().get_credentials(user, self) def __repr__(self): - return "Project('%s', '%s', '%s', '%s', %s)" % \ - (self.id, self.name, self.project_manager_id, self.description, - self.member_ids) + return "Project('%s', '%s')" % (self.id, self.name) class AuthManager(object): |
