lavender/server/pages/flow-callback.go.html

29 lines
682 B
HTML
Raw Normal View History

2023-10-04 14:51:38 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{.ServiceName}}</title>
<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>
2023-10-04 14:51:38 +01:00
</head>
<body>
<header>
<h1>{{.ServiceName}}</h1>
</header>
<main id="mainBody">Loading...</main>
2023-10-04 14:51:38 +01:00
</body>
</html>