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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e9d483394c
commit
1bbc9490f1
+1
-1
@@ -13,7 +13,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'name' => env('APP_NAME', 'Ladill Mini'),
|
'name' => env('APP_NAME', 'Ladill POS'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
+1
-1
@@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'api_url' => env('IDENTITY_API_URL', 'https://ladill.com/api'),
|
'api_url' => env('IDENTITY_API_URL', 'https://ladill.com/api'),
|
||||||
'api_key' => env('IDENTITY_API_KEY_MINI'),
|
'api_key' => env('IDENTITY_API_KEY_POS'),
|
||||||
];
|
];
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'product_slug' => 'mini',
|
'product_slug' => 'pos',
|
||||||
'marketing_url' => env('LADILL_MARKETING_URL', 'https://ladill.com/products/mini'),
|
'marketing_url' => env('LADILL_MARKETING_URL', 'https://ladill.com/products/pos'),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'app_name' => 'Mini',
|
'app_name' => 'POS',
|
||||||
];
|
];
|
||||||
|
|||||||
+2
-2
@@ -23,7 +23,7 @@ return [
|
|||||||
'issuer' => 'https://'.config('app.auth_domain'),
|
'issuer' => 'https://'.config('app.auth_domain'),
|
||||||
'client_id' => env('LADILL_SSO_CLIENT_ID'),
|
'client_id' => env('LADILL_SSO_CLIENT_ID'),
|
||||||
'client_secret' => env('LADILL_SSO_CLIENT_SECRET'),
|
'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
|
// 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).
|
// shared first-party service key (config/identity.php on the monolith).
|
||||||
'ladill_identity' => [
|
'ladill_identity' => [
|
||||||
'url' => 'https://'.config('app.auth_domain'),
|
'url' => 'https://'.config('app.auth_domain'),
|
||||||
'key' => env('IDENTITY_API_KEY_MINI'),
|
'key' => env('IDENTITY_API_KEY_POS'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'ladill_webmail' => [
|
'ladill_webmail' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user