-
Notifications
You must be signed in to change notification settings - Fork 3
/
wait.html.go
40 lines (39 loc) · 999 Bytes
/
wait.html.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package ssojwt
const wait = `
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Please Wait</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
background-color: white;
color: #5d31ff;
font-family: -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
"Helvetica Neue", sans-serif;
font-size: 16px;
text-align: center;
}
</style>
</head>
<body>
<div id="wrap">
<h3>Please Wait</h3>
</div>
<script type="application/javascript">
(() => {
if (window.opener) {
const rawData = "{{.LoginResponse}}";
const data = JSON.parse(rawData);
console.log(data);
window.opener.postMessage(data, "{{.OriginUrl}}");
} else {
console.log("idk");
}
})();
</script>
</body>
</html>
`