From 0188f715a88d98e9d9fe3073ed475747b9f2bfa0 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 12 Jun 2026 22:22:46 +0000 Subject: [PATCH] Send SSO guests to ladill.com/products/servers instead of subdomain landings. Remove interactive OAuth fallback on silent SSO failure and add ladill.marketing_url config so app subdomains open the dashboard when signed in locally. Co-authored-by: Cursor --- app/Http/Controllers/Auth/SsoLoginController.php | 5 +---- config/ladill.php | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 config/ladill.php diff --git a/app/Http/Controllers/Auth/SsoLoginController.php b/app/Http/Controllers/Auth/SsoLoginController.php index 76ba542..c3878d1 100644 --- a/app/Http/Controllers/Auth/SsoLoginController.php +++ b/app/Http/Controllers/Auth/SsoLoginController.php @@ -77,10 +77,7 @@ class SsoLoginController extends Controller if ($request->filled('error')) { if (in_array($request->query('error'), ['login_required', 'interaction_required', 'consent_required'], true) && ! $request->boolean('interactive')) { - return redirect()->route('sso.connect', [ - 'redirect' => $intended, - 'interactive' => 1, - ]); + return redirect()->away((string) config('ladill.marketing_url')); } return $this->finishCallback($request, $intended, (string) $request->query('error_description', $request->query('error')), $popup); diff --git a/config/ladill.php b/config/ladill.php new file mode 100644 index 0000000..78aa609 --- /dev/null +++ b/config/ladill.php @@ -0,0 +1,6 @@ + 'servers', + 'marketing_url' => env('LADILL_MARKETING_URL', 'https://localhost/products/servers'), +];