Files
ladill-qr-plus/resources/views/auth/sso-signing-in.blade.php
T
isaaccladandCursor cd3ba1f334
Deploy Ladill QR Plus / deploy (push) Successful in 30s
Keep the app subdomain visible during Ladill SSO login and logout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 12:15:48 +00:00

39 lines
1.4 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Signing in…</title>
@include('partials.favicon')
<meta name="robots" content="noindex">
<style>
body { font-family: system-ui, sans-serif; display: flex; min-height: 100vh; align-items: center; justify-content: center; margin: 0; background: #f8fafc; color: #334155; }
</style>
</head>
<body>
<p>Signing you in with Ladill…</p>
<script>
(function () {
var intended = @json($intended);
var authorizeUrl = @json($authorizeUrl);
var fallbackUrl = @json($fallbackUrl);
window.addEventListener('message', function (event) {
if (event.origin !== window.location.origin) return;
if (!event.data) return;
if (event.data.type === 'ladill:sso:success') {
window.location.replace(event.data.return || intended);
} else if (event.data.type === 'ladill:sso:error') {
window.location.replace(fallbackUrl);
}
});
var popup = window.open(authorizeUrl, 'ladill_sso', 'width=520,height=720');
if (!popup) {
window.location.replace(fallbackUrl);
}
})();
</script>
</body>
</html>