add the logout page in the portal, but need to framework logout icon add the event...
authorzhouruiyu <zhouruiyu@huawei.com>
Tue, 1 Nov 2016 07:11:22 +0000 (15:11 +0800)
committerzhouruiyu <zhouruiyu@huawei.com>
Tue, 1 Nov 2016 07:11:22 +0000 (15:11 +0800)
https://jira.open-o.org/browse/OCS-145

Change-Id: I99f87da7697edec44b3382319b6f4a1be546e7d0
Signed-off-by: zhouruiyu <zhouruiyu@huawei.com>
openo-portal/portal-common/src/main/webapp/common/logout.html [new file with mode: 0644]

diff --git a/openo-portal/portal-common/src/main/webapp/common/logout.html b/openo-portal/portal-common/src/main/webapp/common/logout.html
new file mode 100644 (file)
index 0000000..bb3dbc2
--- /dev/null
@@ -0,0 +1,39 @@
+<!--
+  Copyright 2016 Huawei Technologies Co., Ltd.
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+      http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!doctype html>
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.11.2.min.js"></script>
+</head>
+<body>
+    <script type="text/javascript">
+        $.ajax({
+            url: "/openoapi/auth/v1/tokens" + "?=" + new Date().getTime(),
+            type: "DELETE",
+            contentType: "application/json",
+            dataType: "text",
+            success: function() {
+                top.window.location = "/openoui/common/login.html";
+            },
+            error: function() {
+                top.window.location = "/openoui/common/login.html";
+            }
+        })
+    </script>
+</body>
+</html>