From 1bbc9490f1dad88aee330c5131ee99bcfed93dae Mon Sep 17 00:00:00 2001 From: isaacclad Date: Thu, 25 Jun 2026 06:00:32 +0000 Subject: [PATCH] Fix Mini fork leftovers in POS config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After an auto-logout, silent re-auth fails with login_required and SsoLoginController@callback redirects to config('ladill.marketing_url') — which still defaulted to https://ladill.com/products/mini, dumping POS users on Mini's product page. Point ladill.product_slug/marketing_url at POS. Also fix the identity service key (config/identity.php + services.ladill_identity read IDENTITY_API_KEY_MINI; POS provisions IDENTITY_API_KEY_POS) and tidy the remaining Mini defaults (app.name, ladill_sso redirect, mobile-topbar app_name). Co-Authored-By: Claude Opus 4.8 --- config/app.php | 2 +- config/identity.php | 2 +- config/ladill.php | 4 ++-- config/mobile-topbar.php | 2 +- config/services.php | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/app.php b/config/app.php index 737118c..5d7a340 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ return [ | */ - 'name' => env('APP_NAME', 'Ladill Mini'), + 'name' => env('APP_NAME', 'Ladill POS'), /* |-------------------------------------------------------------------------- diff --git a/config/identity.php b/config/identity.php index cc1538e..7d1685b 100644 --- a/config/identity.php +++ b/config/identity.php @@ -2,5 +2,5 @@ return [ 'api_url' => env('IDENTITY_API_URL', 'https://ladill.com/api'), - 'api_key' => env('IDENTITY_API_KEY_MINI'), + 'api_key' => env('IDENTITY_API_KEY_POS'), ]; diff --git a/config/ladill.php b/config/ladill.php index 2ad669d..b90545c 100644 --- a/config/ladill.php +++ b/config/ladill.php @@ -1,6 +1,6 @@ 'mini', - 'marketing_url' => env('LADILL_MARKETING_URL', 'https://ladill.com/products/mini'), + 'product_slug' => 'pos', + 'marketing_url' => env('LADILL_MARKETING_URL', 'https://ladill.com/products/pos'), ]; diff --git a/config/mobile-topbar.php b/config/mobile-topbar.php index 9ac615a..0512145 100644 --- a/config/mobile-topbar.php +++ b/config/mobile-topbar.php @@ -1,5 +1,5 @@ 'Mini', + 'app_name' => 'POS', ]; diff --git a/config/services.php b/config/services.php index 1c3a4f2..baa23de 100644 --- a/config/services.php +++ b/config/services.php @@ -23,7 +23,7 @@ return [ 'issuer' => 'https://'.config('app.auth_domain'), 'client_id' => env('LADILL_SSO_CLIENT_ID'), 'client_secret' => env('LADILL_SSO_CLIENT_SECRET'), - 'redirect' => rtrim((string) env('APP_URL', 'https://mini.ladill.com'), '/').'/sso/callback', + 'redirect' => rtrim((string) env('APP_URL', 'https://pos.ladill.com'), '/').'/sso/callback', ], // Central Ladill identity API (auth.ladill.com /api/identity/auth/*). The @@ -31,7 +31,7 @@ return [ // shared first-party service key (config/identity.php on the monolith). 'ladill_identity' => [ 'url' => 'https://'.config('app.auth_domain'), - 'key' => env('IDENTITY_API_KEY_MINI'), + 'key' => env('IDENTITY_API_KEY_POS'), ], 'ladill_webmail' => [