@tomei/sso 0.31.5 → 0.32.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.commitlintrc.json +22 -22
- package/.eslintrc +16 -16
- package/.eslintrc.js +35 -35
- package/.gitlab-ci.yml +16 -16
- package/.husky/commit-msg +15 -15
- package/.husky/pre-commit +7 -7
- package/.prettierrc +4 -4
- package/Jenkinsfile +57 -57
- package/README.md +23 -23
- package/__tests__/unit/components/group/group.spec.ts +79 -79
- package/__tests__/unit/components/group-object-privilege/group-object-privilege.spec.ts +88 -88
- package/__tests__/unit/components/group-privilege/group-privilege.spec.ts +68 -68
- package/__tests__/unit/components/group-reporting-user/group-reporting-user.spec.ts +66 -66
- package/__tests__/unit/components/group-system-access/group-system-access.spec.ts +83 -83
- package/__tests__/unit/components/login-user/l.spec.ts +746 -746
- package/__tests__/unit/components/login-user/login.spec.ts +1064 -1064
- package/__tests__/unit/components/password-hash/password-hash.service.spec.ts +31 -31
- package/__tests__/unit/components/system/system.spec.ts +254 -254
- package/__tests__/unit/components/system-privilege/system-privilege.spec.ts +83 -83
- package/__tests__/unit/components/user-group/user-group.spec.ts +86 -86
- package/__tests__/unit/components/user-object-privilege/user-object-privilege.spec.ts +78 -78
- package/__tests__/unit/components/user-privilege/user-privilege.spec.ts +72 -72
- package/__tests__/unit/components/user-system-access/user-system-access.spec.ts +89 -89
- package/__tests__/unit/redis-client/redis.service.spec.ts +23 -23
- package/__tests__/unit/session/session.service.spec.ts +47 -47
- package/__tests__/unit/system-privilege/system-privilage.spec.ts +91 -91
- package/coverage/clover.xml +1452 -1452
- package/coverage/coverage-final.json +47 -47
- package/coverage/lcov-report/base.css +224 -224
- package/coverage/lcov-report/block-navigation.js +87 -87
- package/coverage/lcov-report/components/group/group.repository.ts.html +117 -117
- package/coverage/lcov-report/components/group/group.ts.html +327 -327
- package/coverage/lcov-report/components/group/index.html +130 -130
- package/coverage/lcov-report/components/group-object-privilege/group-object-privilege.repository.ts.html +117 -117
- package/coverage/lcov-report/components/group-object-privilege/group-object-privilege.ts.html +321 -321
- package/coverage/lcov-report/components/group-object-privilege/index.html +130 -130
- package/coverage/lcov-report/components/group-privilege/group-privilege.repository.ts.html +117 -117
- package/coverage/lcov-report/components/group-privilege/group-privilege.ts.html +303 -303
- package/coverage/lcov-report/components/group-privilege/index.html +130 -130
- package/coverage/lcov-report/components/group-reporting-user/group-reporting-user.repository.ts.html +117 -117
- package/coverage/lcov-report/components/group-reporting-user/group-reporting-user.ts.html +327 -327
- package/coverage/lcov-report/components/group-reporting-user/index.html +130 -130
- package/coverage/lcov-report/components/group-system-access/group-system-access.repository.ts.html +117 -117
- package/coverage/lcov-report/components/group-system-access/group-system-access.ts.html +309 -309
- package/coverage/lcov-report/components/group-system-access/index.html +130 -130
- package/coverage/lcov-report/components/login-history/index.html +115 -115
- package/coverage/lcov-report/components/login-history/login-history.repository.ts.html +117 -117
- package/coverage/lcov-report/components/login-user/index.html +130 -130
- package/coverage/lcov-report/components/login-user/login-user.ts.html +5007 -5007
- package/coverage/lcov-report/components/login-user/user.repository.ts.html +117 -117
- package/coverage/lcov-report/components/password-hash/index.html +115 -115
- package/coverage/lcov-report/components/password-hash/password-hash.service.ts.html +126 -126
- package/coverage/lcov-report/components/system/index.html +130 -130
- package/coverage/lcov-report/components/system/system.repository.ts.html +117 -117
- package/coverage/lcov-report/components/system/system.ts.html +909 -909
- package/coverage/lcov-report/components/system-privilege/index.html +130 -130
- package/coverage/lcov-report/components/system-privilege/system-privilege.repository.ts.html +120 -120
- package/coverage/lcov-report/components/system-privilege/system-privilege.ts.html +390 -390
- package/coverage/lcov-report/components/user-group/index.html +130 -130
- package/coverage/lcov-report/components/user-group/user-group.repository.ts.html +117 -117
- package/coverage/lcov-report/components/user-group/user-group.ts.html +354 -354
- package/coverage/lcov-report/components/user-object-privilege/index.html +130 -130
- package/coverage/lcov-report/components/user-object-privilege/user-object-privilege.repository.ts.html +117 -117
- package/coverage/lcov-report/components/user-object-privilege/user-object-privilege.ts.html +312 -312
- package/coverage/lcov-report/components/user-privilege/index.html +130 -130
- package/coverage/lcov-report/components/user-privilege/user-privilege.repository.ts.html +117 -117
- package/coverage/lcov-report/components/user-privilege/user-privilege.ts.html +306 -306
- package/coverage/lcov-report/components/user-system-access/index.html +130 -130
- package/coverage/lcov-report/components/user-system-access/user-system-access.repository.ts.html +117 -117
- package/coverage/lcov-report/components/user-system-access/user-system-access.ts.html +312 -312
- package/coverage/lcov-report/enum/group-type.enum.ts.html +108 -108
- package/coverage/lcov-report/enum/index.html +160 -160
- package/coverage/lcov-report/enum/index.ts.html +93 -93
- package/coverage/lcov-report/enum/user-status.enum.ts.html +105 -105
- package/coverage/lcov-report/enum/yn.enum.ts.html +96 -96
- package/coverage/lcov-report/index.html +370 -370
- package/coverage/lcov-report/models/group-object-privilege.entity.ts.html +333 -333
- package/coverage/lcov-report/models/group-privilege.entity.ts.html +315 -315
- package/coverage/lcov-report/models/group-reporting-user.entity.ts.html +339 -339
- package/coverage/lcov-report/models/group-system-access.entity.ts.html +324 -324
- package/coverage/lcov-report/models/group.entity.ts.html +435 -435
- package/coverage/lcov-report/models/index.html +310 -310
- package/coverage/lcov-report/models/login-history.entity.ts.html +252 -252
- package/coverage/lcov-report/models/staff.entity.ts.html +411 -411
- package/coverage/lcov-report/models/system-privilege.entity.ts.html +354 -354
- package/coverage/lcov-report/models/system.entity.ts.html +423 -423
- package/coverage/lcov-report/models/user-group.entity.ts.html +354 -354
- package/coverage/lcov-report/models/user-object-privilege.entity.ts.html +330 -330
- package/coverage/lcov-report/models/user-privilege.entity.ts.html +315 -315
- package/coverage/lcov-report/models/user-system-access.entity.ts.html +315 -315
- package/coverage/lcov-report/models/user.entity.ts.html +522 -522
- package/coverage/lcov-report/prettify.css +1 -1
- package/coverage/lcov-report/prettify.js +2 -2
- package/coverage/lcov-report/redis-client/index.html +115 -115
- package/coverage/lcov-report/redis-client/redis.service.ts.html +240 -240
- package/coverage/lcov-report/session/index.html +115 -115
- package/coverage/lcov-report/session/session.service.ts.html +246 -246
- package/coverage/lcov-report/sorter.js +196 -196
- package/coverage/lcov.info +2490 -2490
- package/coverage/test-report.xml +128 -128
- package/create-sso-user.sql +39 -39
- package/dist/__tests__/unit/components/group-privilege/group-privilege.test.d.ts +1 -0
- package/dist/__tests__/unit/components/group-privilege/group-privilege.test.js +71 -0
- package/dist/__tests__/unit/components/group-privilege/group-privilege.test.js.map +1 -0
- package/dist/__tests__/unit/components/login-user/login-user.spec.js +5 -0
- package/dist/__tests__/unit/components/login-user/login-user.spec.js.map +1 -1
- package/dist/src/components/group/group.d.ts +5 -0
- package/dist/src/components/group/group.js +38 -0
- package/dist/src/components/group/group.js.map +1 -1
- package/dist/src/components/group-system-access/group-system-access.repository.d.ts +1 -0
- package/dist/src/components/group-system-access/group-system-access.repository.js +26 -0
- package/dist/src/components/group-system-access/group-system-access.repository.js.map +1 -1
- package/dist/src/components/login-user/login-user.d.ts +1 -1
- package/dist/src/components/system/system.d.ts +1 -0
- package/dist/src/components/system/system.js +71 -0
- package/dist/src/components/system/system.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/jest.config.js +14 -14
- package/migrations/20240314080602-create-user-table.js +108 -108
- package/migrations/20240314080603-create-user-group-table.js +85 -85
- package/migrations/20240314080604-create-user-user-group-table.js +55 -55
- package/migrations/20240314080605-create-login-history-table.js +53 -53
- package/migrations/20240527064925-create-system-table.js +78 -78
- package/migrations/20240527064926-create-system-privilege-table.js +67 -67
- package/migrations/20240527065342-create-group-table.js +89 -89
- package/migrations/20240527065633-create-group-reporting-user-table.js +76 -76
- package/migrations/20240528011551-create-group-system-access-table.js +72 -72
- package/migrations/20240528023018-user-system-access-table.js +75 -75
- package/migrations/20240528032229-user-privilege-table.js +75 -75
- package/migrations/20240528063003-create-group-privilege-table.js +75 -75
- package/migrations/20240528063051-create-group-object-privilege-table.js +84 -84
- package/migrations/20240528063107-create-user-object-privilege-table.js +83 -83
- package/package.json +89 -88
- package/sampledotenv +7 -7
- package/sonar-project.properties +22 -22
- package/src/components/group/group.ts +68 -1
- package/src/components/group-system-access/group-system-access.repository.ts +18 -0
- package/src/components/system/system.ts +113 -0
- package/tsconfig.build.json +5 -5
- package/tsconfig.json +22 -22
@@ -1,4 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
12
|
exports.GroupSystemAccessRepository = void 0;
|
4
13
|
const group_system_access_entity_1 = require("../../models/group-system-access.entity");
|
@@ -7,6 +16,23 @@ class GroupSystemAccessRepository extends general_1.RepositoryBase {
|
|
7
16
|
constructor() {
|
8
17
|
super(group_system_access_entity_1.default);
|
9
18
|
}
|
19
|
+
findAndCountAll(options) {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
try {
|
22
|
+
let GroupSystemAccess;
|
23
|
+
if (options) {
|
24
|
+
GroupSystemAccess = yield group_system_access_entity_1.default.findAndCountAll(options);
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
GroupSystemAccess = yield group_system_access_entity_1.default.findAndCountAll();
|
28
|
+
}
|
29
|
+
return GroupSystemAccess;
|
30
|
+
}
|
31
|
+
catch (error) {
|
32
|
+
throw new Error(`An Error occured when retriving GroupSystemAccess: ${error.message}`);
|
33
|
+
}
|
34
|
+
});
|
35
|
+
}
|
10
36
|
}
|
11
37
|
exports.GroupSystemAccessRepository = GroupSystemAccessRepository;
|
12
38
|
//# sourceMappingURL=group-system-access.repository.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group-system-access.repository.js","sourceRoot":"","sources":["../../../../src/components/group-system-access/group-system-access.repository.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"group-system-access.repository.js","sourceRoot":"","sources":["../../../../src/components/group-system-access/group-system-access.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wFAA6E;AAC7E,4CAAiE;AAEjE,MAAa,2BACX,SAAQ,wBAAsC;IAG9C;QACE,KAAK,CAAC,oCAAsB,CAAC,CAAC;IAChC,CAAC;IAEK,eAAe,CAAC,OAAa;;YACjC,IAAI;gBACF,IAAI,iBAAsB,CAAC;gBAC3B,IAAI,OAAO,EAAE;oBACX,iBAAiB,GAAG,MAAM,oCAAsB,CAAC,eAAe,CAC9D,OAAO,CACR,CAAC;iBACH;qBAAM;oBACL,iBAAiB,GAAG,MAAM,oCAAsB,CAAC,eAAe,EAAE,CAAC;iBACpE;gBACD,OAAO,iBAAiB,CAAC;aAC1B;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CACb,sDAAsD,KAAK,CAAC,OAAO,EAAE,CACtE,CAAC;aACH;QACH,CAAC;KAAA;CACF;AAzBD,kEAyBC"}
|
@@ -110,7 +110,7 @@ export declare class LoginUser extends LoginUserBase {
|
|
110
110
|
private static combineSystemAccess;
|
111
111
|
static getSystems(loginUser: LoginUser, dbTransaction: any): Promise<any[]>;
|
112
112
|
private static check2FA;
|
113
|
-
static setup2FA(userId: number, dbTransaction: any): Promise<
|
113
|
+
static setup2FA(userId: number, dbTransaction: any): Promise<any>;
|
114
114
|
verify2FASetup(userId: number, mfaToken: string, dbTransaction: any): Promise<string | false>;
|
115
115
|
verify2FACode(userId: number, mfaToken: string, dbTransaction: any): Promise<string | false>;
|
116
116
|
addUserGroup(GroupCode: string, loginUser: LoginUser, dbTransaction: any): Promise<void>;
|
@@ -15,6 +15,7 @@ const system_repository_1 = require("./system.repository");
|
|
15
15
|
const config_1 = require("@tomei/config");
|
16
16
|
const activity_history_1 = require("@tomei/activity-history");
|
17
17
|
const sequelize_1 = require("sequelize");
|
18
|
+
const uuid_1 = require("uuid");
|
18
19
|
class System extends general_1.ObjectBase {
|
19
20
|
get CreatedById() {
|
20
21
|
return this._CreatedById;
|
@@ -188,6 +189,76 @@ class System extends general_1.ObjectBase {
|
|
188
189
|
}
|
189
190
|
});
|
190
191
|
}
|
192
|
+
static renewApiKeyAndSecret(loginUser, dbTransaction, systemCode) {
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
194
|
+
try {
|
195
|
+
const sc = config_1.ApplicationConfig.getComponentConfigValue('system-code');
|
196
|
+
const isPrivileged = yield loginUser.checkPrivileges(sc, 'SYSTEM_UPDATE');
|
197
|
+
if (!isPrivileged) {
|
198
|
+
throw new general_1.ClassError('System', 'SystemErrMsg06', 'You do not have permission to renew API Key and Secret.');
|
199
|
+
}
|
200
|
+
const system = yield System.init(dbTransaction, systemCode);
|
201
|
+
if (!system.AccessURL) {
|
202
|
+
throw new general_1.ClassError('System', 'SystemErrMsg07', 'AccessURL is required for callback');
|
203
|
+
}
|
204
|
+
if (system.Status !== 'Active') {
|
205
|
+
throw new general_1.ClassError('System', 'SystemErrMsg08', 'Cannot do this operation on inactive system.');
|
206
|
+
}
|
207
|
+
const entityValueBefore = {
|
208
|
+
SystemCode: system.SystemCode,
|
209
|
+
Name: system.Name,
|
210
|
+
Description: system.Description,
|
211
|
+
AccessURL: system.AccessURL,
|
212
|
+
GooglePlayURL: system.GooglePlayURL,
|
213
|
+
AppleStoreURL: system.AppleStoreURL,
|
214
|
+
APIKey: system.APIKey,
|
215
|
+
APISecret: system.APISecret,
|
216
|
+
Status: system.Status,
|
217
|
+
};
|
218
|
+
const apiKey = (0, uuid_1.v4)();
|
219
|
+
const apiSecret = (0, uuid_1.v4)();
|
220
|
+
system.APIKey = apiKey;
|
221
|
+
system.APISecret = apiSecret;
|
222
|
+
system._UpdatedById = loginUser.UserId;
|
223
|
+
system._UpdatedAt = new Date();
|
224
|
+
yield System._Repo.update({
|
225
|
+
APIKey: apiKey,
|
226
|
+
APISecret: apiSecret,
|
227
|
+
UpdatedById: system._UpdatedById,
|
228
|
+
UpdatedAt: system._UpdatedAt,
|
229
|
+
}, {
|
230
|
+
where: {
|
231
|
+
SystemCode: systemCode,
|
232
|
+
},
|
233
|
+
transaction: dbTransaction,
|
234
|
+
});
|
235
|
+
const entityValueAfter = {
|
236
|
+
SystemCode: system.SystemCode,
|
237
|
+
Name: system.Name,
|
238
|
+
Description: system.Description,
|
239
|
+
AccessURL: system.AccessURL,
|
240
|
+
GooglePlayURL: system.GooglePlayURL,
|
241
|
+
AppleStoreURL: system.AppleStoreURL,
|
242
|
+
APIKey: system.APIKey,
|
243
|
+
APISecret: system.APISecret,
|
244
|
+
Status: system.Status,
|
245
|
+
};
|
246
|
+
const activity = new activity_history_1.Activity();
|
247
|
+
activity.ActivityId = activity.createId();
|
248
|
+
activity.Action = activity_history_1.ActionEnum.UPDATE;
|
249
|
+
activity.Description = 'Renew API key and secret for a system';
|
250
|
+
activity.EntityType = 'System';
|
251
|
+
activity.EntityId = system.SystemCode;
|
252
|
+
activity.EntityValueBefore = JSON.stringify(entityValueBefore);
|
253
|
+
activity.EntityValueAfter = JSON.stringify(entityValueAfter);
|
254
|
+
yield activity.create(loginUser.ObjectId, dbTransaction);
|
255
|
+
return system;
|
256
|
+
}
|
257
|
+
catch (error) {
|
258
|
+
throw error;
|
259
|
+
}
|
260
|
+
});
|
261
|
+
}
|
191
262
|
}
|
192
263
|
exports.System = System;
|
193
264
|
System._Repo = new system_repository_1.SystemRepository();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/components/system/system.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAmE;AACnE,2DAAuD;AAGvD,0CAAkD;AAClD,8DAA+D;AAE/D,yCAA+B;
|
1
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