temporarily hack out the keystone auth.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
f4fa8645fb
commit
7d11d4abf6
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user