Keep the app subdomain visible during Ladill SSO login and logout.
Deploy Ladill Hosting / deploy (push) Successful in 34s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-09 12:15:37 +00:00
co-authored by Cursor
parent a3496f8019
commit fedd01cdde
5 changed files with 259 additions and 36 deletions
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Signing in…</title>
<meta name="robots" content="noindex">
</head>
<body>
<script>
(function () {
var intended = @json($intended);
var appOrigin = @json($appOrigin);
@if ($error)
if (window.opener) {
window.opener.postMessage({ type: 'ladill:sso:error' }, appOrigin);
window.close();
} else {
window.location.replace(@json(route('sso.connect', ['redirect' => $intended, 'interactive' => 1, 'fallback' => 1])));
}
@else
if (window.opener) {
window.opener.postMessage({ type: 'ladill:sso:success', return: intended }, appOrigin);
window.close();
} else {
window.location.replace(intended);
}
@endif
})();
</script>
</body>
</html>