Deploy Ladill Transfer / deploy (push) Successful in 24s
Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Signing in…</title>
|
|
<meta name="robots" content="noindex">
|
|
</head>
|
|
<body>
|
|
@php
|
|
$ssoFallbackUrl = $fallbackUrl ?? route('sso.connect', [
|
|
'redirect' => $intended,
|
|
'interactive' => 1,
|
|
'fallback' => 1,
|
|
]);
|
|
@endphp
|
|
<script>
|
|
(function () {
|
|
var intended = @json($intended);
|
|
var appOrigin = @json($appOrigin);
|
|
var fallbackUrl = @json($ssoFallbackUrl);
|
|
@if ($error)
|
|
if (window.opener) {
|
|
window.opener.postMessage({ type: 'ladill:sso:error' }, appOrigin);
|
|
window.close();
|
|
} else {
|
|
window.location.replace(fallbackUrl);
|
|
}
|
|
@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>
|