From 01fccdb1ccc7f7e42b6487b42b6946db98fb8c44 Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Tue, 20 Nov 2012 15:22:22 -0600 Subject: 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 --- keystone/common/wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keystone/common') 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() -- cgit