diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2012-11-20 15:22:22 -0600 |
---|---|---|
committer | Dolph Mathews <dolph.mathews@gmail.com> | 2012-11-20 15:43:28 -0600 |
commit | 01fccdb1ccc7f7e42b6487b42b6946db98fb8c44 (patch) | |
tree | 9cecbd66bcb767e3593742d16097d3d04b490d28 /keystone/common/wsgi.py | |
parent | 4c0f9a6ec2f05b11bce29f2c865b01dc9ae2d8b1 (diff) | |
download | keystone-01fccdb1ccc7f7e42b6487b42b6946db98fb8c44.tar.gz keystone-01fccdb1ccc7f7e42b6487b42b6946db98fb8c44.tar.xz keystone-01fccdb1ccc7f7e42b6487b42b6946db98fb8c44.zip |
Expose auth failure details in debug mode
Users can now run keystone with debug = True to reveal detailed messages
about authentication/authorization failures. This is especially useful
for new users setting up OpenStack for the first time.
Example: http://paste.openstack.org/raw/26228/
DocImpact
Change-Id: I0d072d1f0147b53da90cd4214a1e843bf39ee8e4
Diffstat (limited to 'keystone/common/wsgi.py')
-rw-r--r-- | keystone/common/wsgi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py index 39529bc9..8d886902 100644 --- a/keystone/common/wsgi.py +++ b/keystone/common/wsgi.py @@ -246,8 +246,8 @@ class Application(BaseApplication): try: user_token_ref = self.token_api.get_token( context=context, token_id=context['token_id']) - except exception.TokenNotFound: - raise exception.Unauthorized() + except exception.TokenNotFound as e: + raise exception.Unauthorized(e) creds = user_token_ref['metadata'].copy() |