Files
isaaccladandClaude Opus 4.8 1bbc9490f1
Deploy Ladill POS / deploy (push) Successful in 59s
Fix Mini fork leftovers in POS config
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>
2026-06-25 06:00:32 +00:00

82 lines
2.7 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Mailgun, Postmark, AWS and more. This file provides the de facto
| location for this type of information, allowing packages to have
| a conventional file to locate the various service credentials.
|
*/
/*
| Ladill SSO (OIDC) — this app is a first-party client of the platform
| identity provider at auth.ladill.com (Authorization Code + PKCE). Mirrors
| the monolith's reference client; redirect points back at this app.
*/
'ladill_sso' => [
'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://pos.ladill.com'), '/').'/sso/callback',
],
// Central Ladill identity API (auth.ladill.com /api/identity/auth/*). The
// mobile app's native login/register proxy through here, gated by the
// shared first-party service key (config/identity.php on the monolith).
'ladill_identity' => [
'url' => 'https://'.config('app.auth_domain'),
'key' => env('IDENTITY_API_KEY_POS'),
],
'ladill_webmail' => [
'url' => env('LADILL_WEBMAIL_URL', 'https://mail.ladill.com'),
],
'postmark' => [
'key' => env('POSTMARK_API_KEY'),
],
'resend' => [
'key' => env('RESEND_API_KEY'),
],
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'slack' => [
'notifications' => [
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
],
],
'termii' => [
'api_key' => env('TERMII_API_KEY'),
'sender_id' => env('TERMII_SENDER_ID', 'LaDill'),
],
// Paystack — guest checkout (and the card fallback for logged-in buyers).
'paystack' => [
'base_url' => env('PAYSTACK_BASE_URL', 'https://api.paystack.co'),
'public_key' => env('PAYSTACK_PUBLIC_KEY'),
'secret_key' => env('PAYSTACK_SECRET_KEY'),
'webhook_secret' => env('PAYSTACK_WEBHOOK_SECRET', env('PAYSTACK_SECRET_KEY')),
'checkout_email' => env('PAYSTACK_CHECKOUT_EMAIL', 'pay@ladill.com'),
],
'fcm' => [
'project_id' => env('FIREBASE_PROJECT_ID'),
'service_account_json' => env('FIREBASE_SERVICE_ACCOUNT_JSON'),
],
];