Added 'mybank' to fineractPlatformTenantIds in all three places the tenant selector reads it from, so the local database + tenant-store registration just created (fineract_mybank, identifier "mybank", name "MyBank", copied from lincpay's local connection settings onto a fresh empty schema) shows up as a login option: - src/assets/env.js (window['env'] default, read before Angular bootstraps) - src/environments/environment.ts (dev build fallback) - src/environments/environment.prod.ts (prod build fallback) Each already listed utkarshbank, lincpay, utkarshnagari, testbank, humarwork, default -- this only appends mybank, nothing else in the list changes. .env.ts is the auto-generated build stamp (npm run env) and picked up incidentally alongside; it carries no logic. Not included in this commit: the fd-interest-posting / fd-maturity-report / branch-day / shell.component.html changes sitting in the working tree are a separate, unrelated, in-progress feature and are deliberately left out. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
126 lines
4.2 KiB
JavaScript
126 lines
4.2 KiB
JavaScript
/**
|
|
* Copyright since 2025 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
(function (window) {
|
|
window["env"] = window["env"] || {};
|
|
|
|
// BackEnd Environment variables
|
|
window["env"]["fineractApiUrls"] = '';
|
|
window["env"]["fineractApiUrl"] = '';
|
|
|
|
window["env"]["apiProvider"] = '';
|
|
window["env"]["apiVersion"] = '';
|
|
window["env"]["apiActuator"] = '';
|
|
|
|
// Tenants the login screen offers, and which one it starts on. Every identifier here has to exist
|
|
// in the tenants table of the tenant-store database, or the platform rejects the request as an
|
|
// unknown tenant.
|
|
window["env"]["fineractPlatformTenantId"] = 'utkarshbank';
|
|
window["env"]["fineractPlatformTenantIds"] = 'utkarshbank,lincpay,utkarshnagari,testbank,humarwork,default,mybank';
|
|
|
|
window['env']['tenantLogoUrl'] = '';
|
|
window['env']['tenantLogoUrlDark'] = '';
|
|
|
|
// Language Environment variables
|
|
window["env"]["defaultLanguage"] = '';
|
|
window["env"]["supportedLanguages"] = '';
|
|
|
|
window["env"]["defaultFormatDate"] = '';
|
|
window["env"]["defaultFormatDatetime"] = '';
|
|
|
|
window['env']['preloadClients'] = '';
|
|
|
|
// Char delimiter to Export CSV options: ',' ';' '|' ' '
|
|
window['env']['defaultCharDelimiter'] = '';
|
|
|
|
// Display or not the Server Selector
|
|
window['env']['allowServerSwitch'] = '';
|
|
|
|
// Display or not the BackEnd Info
|
|
window['env']['displayBackEndInfo'] = '';
|
|
|
|
// Show minimal production hero on login page
|
|
window['env']['productionMode'] = '';
|
|
|
|
// Display or not the Tenant Selector
|
|
window['env']['displayTenantSelector'] = '';
|
|
|
|
// Time in seconds for Notifications, default 60 seconds
|
|
window['env']['waitTimeForNotifications'] = '';
|
|
|
|
// Time in seconds for COB Catch-Up, default 30 seconds
|
|
window['env']['waitTimeForCOBCatchUp'] = '';
|
|
|
|
// Time in milliseconds for Session idle timeout, default 300000 seconds
|
|
window['env']['sessionIdleTimeout'] = '';
|
|
|
|
// OAuth Server Enabled
|
|
window['env']['oauthServerEnabled'] = false;
|
|
|
|
// OAuth Server URL
|
|
window['env']['oauthServerUrl'] = '';
|
|
|
|
// OAuth Server Logout URL
|
|
window['env']['oauthServerLogoutUrl'] = '';
|
|
|
|
// OAuth Client Id
|
|
window['env']['oauthAppId'] = '';
|
|
|
|
// OAuth Authorize URL
|
|
window['env']['oauthAuthorizeUrl'] = '';
|
|
|
|
// OAuth Token URL
|
|
window['env']['oauthTokenUrl'] = '';
|
|
|
|
// OAuth Redirect URI
|
|
window['env']['oauthRedirectUri'] = '';
|
|
|
|
// OAuth Scope
|
|
window['env']['oauthScope'] = '';
|
|
|
|
|
|
// Hide client data (mask names)
|
|
window['env']['complianceHideClientData'] = '';
|
|
|
|
// Interbank Transfers Environment variables
|
|
window['env']['mifosInterbankTransfersApiUrl'] = '';
|
|
window['env']['mifosInterbankTransfersApiProvider'] = '';
|
|
window['env']['mifosInterbankTransfersApiVersion'] = '';
|
|
window['env']['mifosInterbankTransfersEnabled'] = 'true';
|
|
|
|
// Remittance Module Environment variables
|
|
window['env']['mifosRemittanceApiClientUrl'] = '';
|
|
window['env']['mifosRemittanceApiProvider'] = '';
|
|
window['env']['mifosRemittanceApiVersion'] = '';
|
|
window['env']['mifosRemittanceEnabled'] = false;
|
|
window['env']['mifosRemittanceApiClientHeader'] = '';
|
|
window['env']['mifosRemittanceApiClientKey'] = '';
|
|
|
|
// Enable Role-Based Access Control (RBAC) for menu/button permissions
|
|
// Set to true to enable RBAC, false (default) for backward compatibility
|
|
window['env']['productionModeEnableRBAC'] = false;
|
|
|
|
// External National ID System
|
|
// Set to 'true' to enable External National ID lookup during client creation/editing
|
|
// When enabled, set EXTERNAL_NATIONAL_ID_SYSTEM_URL, API_HEADER, API_KEY, and REGEX
|
|
// In production, API key is injected server-side via nginx proxy_set_header (never set here)
|
|
window['env']['enableExternalNationalIdSystem'] = 'false';
|
|
window['env']['externalNationalIdSystemUrl'] = '';
|
|
window['env']['externalNationalIdSystemApiHeader'] = '';
|
|
window['env']['externalNationalIdSystemApiKey'] = '';
|
|
window['env']['externalNationalIdRegex'] = '';
|
|
|
|
// OIDC Plugin Environment variables
|
|
window['env']['oidcServerEnabled'] = false;
|
|
window['env']['oidcBaseUrl'] = '';
|
|
window['env']['oidcClientId'] = '';
|
|
window['env']['oidcApiUrl'] = '';
|
|
window['env']['oidcFrontUrl'] = '';
|
|
|
|
})(this);
|