Disable the schema validation in Auth
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -1138,10 +1138,10 @@ export default class AuthorizationsDefinition {
private constructor() {
try {
// Validate each role
- for (const roleName in AUTHORIZATION_DEFINITION) {
- const role = AUTHORIZATION_DEFINITION[roleName];
- AUTHORIZATION_DEFINITION[roleName] = AuthorizationValidatorStorage.getInstance().validateAuthorizationDefinitionRole(role);
- }
+ // for (const roleName in AUTHORIZATION_DEFINITION) {
+ // const role = AUTHORIZATION_DEFINITION[roleName];
+ // AUTHORIZATION_DEFINITION[roleName] = AuthorizationValidatorStorage.getInstance().validateAuthorizationDefinitionRole(role);
+ // }
// Instantiate the ACLs
this.accessControl = new AccessControl(AUTHORIZATION_DEFINITION, AUTHORIZATION_CONDITIONS);
} catch (error) {

MODIFY
src/start.ts
src/start.ts
@@ -49,6 +49,7 @@ export default class Bootstrap {
public static async start(): Promise<void> {
let serverStarted: string[] = [];
+ const timeStartMillis = Date.now();
try {
// Setup i18n
await I18nManager.initialize();
@@ -126,7 +127,8 @@ export default class Bootstrap {
global.serverName = serverStarted[0];
}
// Log
- const successMsg = `${serverStarted.join(', ')} server has been started successfuly`;
+ const startDurationSecs = Utils.createDecimal(Date.now() - timeStartMillis).div(1000).toNumber();
+ const successMsg = `${serverStarted.join(', ')} server has been started successfuly in ${startDurationSecs}secs`;
await Logging.logInfo({
tenantID: Constants.DEFAULT_TENANT,
action: ServerAction.BOOTSTRAP_STARTUP,

Disable the schema validation in Auth