mirror of
https://github.com/1f349/tulip.git
synced 2024-12-23 16:54:08 +00:00
30 lines
734 B
HTML
30 lines
734 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{{.ServiceName}}</title>
|
|
<link rel="stylesheet" href="/theme/style.css">
|
|
<script>
|
|
let loginData = {
|
|
target:{{.TargetOrigin}},
|
|
tokens: {
|
|
access:{{.AccessToken}},
|
|
refresh:{{.RefreshToken}},
|
|
},
|
|
userinfo:{{.TargetMessage}},
|
|
};
|
|
window.addEventListener("load", function () {
|
|
window.opener.postMessage(loginData, loginData.target);
|
|
setTimeout(function () {
|
|
window.close();
|
|
}, 500);
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>{{.ServiceName}}</h1>
|
|
</header>
|
|
<main id="mainBody">Loading...</main>
|
|
</body>
|
|
</html>
|