2023-10-04 14:51:38 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>{{.ServiceName}}</title>
|
2023-10-04 21:53:20 +01:00
|
|
|
<script>
|
2023-10-05 15:16:21 +01:00
|
|
|
let loginData = {
|
|
|
|
target:{{.TargetOrigin}},
|
|
|
|
userinfo:{{.TargetMessage}},
|
|
|
|
tokens: {
|
|
|
|
access:{{.AccessToken}},
|
|
|
|
refresh:{{.RefreshToken}},
|
|
|
|
},
|
|
|
|
};
|
2023-10-04 21:53:20 +01:00
|
|
|
window.addEventListener("load", function () {
|
2023-10-05 15:16:21 +01:00
|
|
|
window.opener.postMessage(loginData, loginData.target);
|
2023-11-08 11:38:31 +00:00
|
|
|
setTimeout(function () {
|
|
|
|
window.close();
|
|
|
|
}, 500);
|
2023-10-04 21:53:20 +01:00
|
|
|
});
|
|
|
|
</script>
|
2023-10-04 14:51:38 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<h1>{{.ServiceName}}</h1>
|
|
|
|
</header>
|
2023-10-04 21:53:20 +01:00
|
|
|
<main id="mainBody">Loading...</main>
|
2023-10-04 14:51:38 +01:00
|
|
|
</body>
|
|
|
|
</html>
|