temporarily hack out the keystone auth.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2012-04-02 11:59:18 +10:00
parent f4fa8645fb
commit 7d11d4abf6
1 changed files with 4 additions and 1 deletions

View File

@ -94,7 +94,10 @@ class ContextMiddleware(wsgi.Middleware):
using NoAuth. In that case, assume that is_admin=True.
"""
auth_tok = req.headers.get('X-Auth-Token')
if auth_tok:
#
# hack alert, this is for POC only FIXME properly!
#
if False:
if req.headers.get('X-Identity-Status') == 'Confirmed':
# 1. Auth-token is passed, check other headers
user = req.headers.get('X-User-Id')