summaryrefslogtreecommitdiffstats
path: root/opnfv_testapi/ui/auth/sign.py
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2020-09-25 18:53:57 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2020-10-19 22:19:56 +0530
commit4b780f978ed5d941f5066f66ec2520f3d9ec1313 (patch)
treedb0a2172b0cbfdc1714f905e78f7b6f21713296e /opnfv_testapi/ui/auth/sign.py
parent5e2e95719f26f54db9ecf28847c36098b253b290 (diff)
Added Logout Dovetail-Webportal
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I298d65141b4c9a795744c7f59e43ca5662103895
Diffstat (limited to 'opnfv_testapi/ui/auth/sign.py')
-rw-r--r--opnfv_testapi/ui/auth/sign.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/opnfv_testapi/ui/auth/sign.py b/opnfv_testapi/ui/auth/sign.py
index 0667227..f245c4b 100644
--- a/opnfv_testapi/ui/auth/sign.py
+++ b/opnfv_testapi/ui/auth/sign.py
@@ -322,3 +322,9 @@ class LoginHandler(base.BaseHandler):
mc.set("token", token)
self.set_header("token", token)
self.finish_request(response)
+
+class LogoutHandler(base.BaseHandler):
+ def post(self):
+ input_token = self.request.headers._dict['Token']
+ resp = {'Message': 'You have been logged out successfully.'}
+ self.finish_request(resp)