"""
from uuid import uuid4
+import time
from flask_restful import Resource
from oslo_config import cfg
from oslo_log import log as logging
"""
# Note (asteroide): user_id default to admin to be able to read the database
# it would be better to have a read-only user.
- return call("security_router", ctx={"id": uuid,
+ start_time = time.time()
+ result = call("security_router", ctx={"id": uuid,
"call_master": False,
"method": "authz",
"subject_name": subject_name,
"action_name": action_name,
"user_id": "admin",
"request_id": uuid4().hex}, args={})
-
+ end_time = time.time()
+ result['time'] = {"start": start_time, "end": end_time}
+ return result