Deploy Ladill Give / deploy (push) Successful in 48s
Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
965 B
PHP
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>
|