Deploy Ladill Mini / deploy (push) Successful in 31s
Login no longer uses the OAuth password grant (which wasn't enabled, the cause of login failures). Both login and the new register endpoint proxy to auth.ladill.com /api/identity/auth/* (shared IDENTITY_API_KEY_MINI), provision the local mirror, and issue a Sanctum token — one Ladill identity across web and app. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
77 lines
2.6 KiB
PHP
77 lines
2.6 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://mini.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_MINI'),
|
|
],
|
|
|
|
'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'),
|
|
],
|
|
|
|
];
|