summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/root.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-30 11:59:46 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-08-31 10:43:14 +0800
commit9e36409f1bf52a6fd510c4f4896d85761b59cfa9 (patch)
treeb5917ad3530efb2856a9a398a78cb7fca3af9e2e /testapi/opnfv_testapi/ui/root.py
parentea7706279a99c03181c348d29c157f70037ed217 (diff)
leverage LFID as Authentication
delete openid authentication add LFID authentication Change-Id: Iead144b5130bce51448024e65092fdea3bb2f07a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/ui/root.py')
-rw-r--r--testapi/opnfv_testapi/ui/root.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/ui/root.py b/testapi/opnfv_testapi/ui/root.py
index 5b2c922..069ad5e 100644
--- a/testapi/opnfv_testapi/ui/root.py
+++ b/testapi/opnfv_testapi/ui/root.py
@@ -1,10 +1,12 @@
-from opnfv_testapi.resources.handlers import GenericApiHandler
+from opnfv_testapi.common import check
from opnfv_testapi.common.config import CONF
+from opnfv_testapi.resources import handlers
-class RootHandler(GenericApiHandler):
+class RootHandler(handlers.GenericApiHandler):
def get_template_path(self):
return CONF.static_path
+ @check.login
def get(self):
self.render('testapi-ui/index.html')