2023-10-04 14:51:38 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>{{.ServiceName}}</title>
|
2023-12-17 22:46:58 +00:00
|
|
|
<link rel="stylesheet" href="/theme/style.css">
|
2023-10-04 21:53:20 +01:00
|
|
|
<script>
|
2023-10-05 15:16:21 +01:00
|
|
|
let loginData = {
|
|
|
|
target:{{.TargetOrigin}},
|
|
|
|
tokens: {
|
|
|
|
access:{{.AccessToken}},
|
|
|
|
refresh:{{.RefreshToken}},
|
|
|
|
},
|
2023-12-13 02:05:18 +00:00
|
|
|
userinfo:{{.TargetMessage}},
|
2023-10-05 15:16:21 +01:00
|
|
|
};
|
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>
|