Files
ladill-servers/bootstrap/app.php
T
isaaccladandCursor ebd58db9d1
Deploy Ladill Servers / deploy (push) Successful in 24s
Unify SSO with platform for seamless sign-in across Ladill apps.
Add silent OAuth, deep-link guest redirects, and a session keepalive iframe.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 06:33:16 +00:00

31 lines
996 B
PHP

<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Request;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->redirectGuestsTo(fn (Request $request) => route('sso.connect', [
'redirect' => $request->fullUrl(),
]));
$middleware->web(append: [
\App\Http\Middleware\SetActingAccount::class,
]);
// External registrar webhook posts have no CSRF token.
$middleware->validateCsrfTokens(except: [
'webhooks/dynadot',
]);
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();