54
54
user_id, _sep, project_id = token.partition(':')
55
55
project_id = project_id or user_id
56
56
remote_address = getattr(req, 'remote_address', '127.0.0.1')
58
58
remote_address = req.headers.get('X-Forwarded-For', remote_address)
59
59
ctx = context.RequestContext(user_id,