summaryrefslogtreecommitdiffstats
path: root/keystone
diff options
context:
space:
mode:
Diffstat (limited to 'keystone')
-rw-r--r--keystone/service.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/keystone/service.py b/keystone/service.py
index fdc895cb..c5fe9633 100644
--- a/keystone/service.py
+++ b/keystone/service.py
@@ -285,6 +285,9 @@ class TokenController(wsgi.Application):
Alternatively, this call accepts auth with only a token and tenant
that will return a token that is scoped to that tenant.
"""
+ if not auth:
+ raise exception.ValidationError(attribute='auth',
+ target='request body')
if 'passwordCredentials' in auth:
user_id = auth['passwordCredentials'].get('userId', None)