Files
ladill-mini/resources/views/auth/sso-popup-done.blade.php
T
isaaccladandCursor c42e5819dc
Deploy Ladill Mini / deploy (push) Successful in 42s
Keep the app subdomain visible during Ladill SSO login and logout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 12:14:48 +00:00

32 lines
965 B
PHP

<!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>