@acorex-platform/module-auth-server 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ export declare const AXMAuthCommandKeys: {
2
+ readonly Profile: {
3
+ readonly Show: "auth:profile";
4
+ readonly ChangePhoto: "auth:change-photo";
5
+ readonly EditAccountInfo: "auth:edit-account-info";
6
+ readonly ComingSoon: "auth:profile-coming-soon";
7
+ };
8
+ readonly Session: {
9
+ readonly Signout: "auth:signout";
10
+ readonly OpenSessions: "auth:open-sessions";
11
+ readonly LockScreen: "auth:lock-screen";
12
+ };
13
+ readonly Security: {
14
+ readonly ChangePassword: "auth:change-password";
15
+ readonly SetPinCode: "auth:set-pin-code";
16
+ readonly RemovePinCode: "auth:remove-pin-code";
17
+ readonly ViewLoginHistory: "auth:view-login-history";
18
+ readonly EditSignature: "auth:edit-signature";
19
+ };
20
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ //#region ---- Command keys ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AXMAuthCommandKeys = void 0;
5
+ exports.AXMAuthCommandKeys = {
6
+ Profile: {
7
+ Show: 'auth:profile',
8
+ ChangePhoto: 'auth:change-photo',
9
+ EditAccountInfo: 'auth:edit-account-info',
10
+ ComingSoon: 'auth:profile-coming-soon',
11
+ },
12
+ Session: {
13
+ Signout: 'auth:signout',
14
+ OpenSessions: 'auth:open-sessions',
15
+ LockScreen: 'auth:lock-screen',
16
+ },
17
+ Security: {
18
+ ChangePassword: 'auth:change-password',
19
+ SetPinCode: 'auth:set-pin-code',
20
+ RemovePinCode: 'auth:remove-pin-code',
21
+ ViewLoginHistory: 'auth:view-login-history',
22
+ EditSignature: 'auth:edit-signature',
23
+ },
24
+ };
25
+ //#endregion
26
+ //# sourceMappingURL=commands.keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/contracts/src/commands.keys.ts"],"names":[],"mappings":";AAAA,gCAAgC;;;AAEnB,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE;QACP,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,mBAAmB;QAChC,eAAe,EAAE,wBAAwB;QACzC,UAAU,EAAE,0BAA0B;KACvC;IACD,OAAO,EAAE;QACP,OAAO,EAAE,cAAc;QACvB,YAAY,EAAE,oBAAoB;QAClC,UAAU,EAAE,kBAAkB;KAC/B;IACD,QAAQ,EAAE;QACR,cAAc,EAAE,sBAAsB;QACtC,UAAU,EAAE,mBAAmB;QAC/B,aAAa,EAAE,sBAAsB;QACrC,gBAAgB,EAAE,yBAAyB;QAC3C,aAAa,EAAE,qBAAqB;KACrC;CACO,CAAC;AAEX,YAAY"}
@@ -0,0 +1,4 @@
1
+ /** Auth module datasource registry names. */
2
+ export declare const AXMAuthDataSourceKeys: {
3
+ readonly UserActivity: "auth-user-activity";
4
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ //#region ---- Datasource keys ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AXMAuthDataSourceKeys = void 0;
5
+ /** Auth module datasource registry names. */
6
+ exports.AXMAuthDataSourceKeys = {
7
+ UserActivity: 'auth-user-activity',
8
+ };
9
+ //#endregion
10
+ //# sourceMappingURL=datasource.keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasource.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/contracts/src/datasource.keys.ts"],"names":[],"mappings":";AAAA,mCAAmC;;;AAEnC,6CAA6C;AAChC,QAAA,qBAAqB,GAAG;IACnC,YAAY,EAAE,oBAAoB;CAC1B,CAAC;AAEX,YAAY"}
@@ -0,0 +1,6 @@
1
+ export * from './commands.keys';
2
+ export * from './datasource.keys';
3
+ export * from './menu.keys';
4
+ export * from './permission.keys';
5
+ export * from './root-config';
6
+ export * from './settings.keys';
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ //#region ---- Contracts barrel ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./commands.keys"), exports);
6
+ tslib_1.__exportStar(require("./datasource.keys"), exports);
7
+ tslib_1.__exportStar(require("./menu.keys"), exports);
8
+ tslib_1.__exportStar(require("./permission.keys"), exports);
9
+ tslib_1.__exportStar(require("./root-config"), exports);
10
+ tslib_1.__exportStar(require("./settings.keys"), exports);
11
+ //#endregion
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,0DAAgC;AAChC,4DAAkC;AAClC,sDAA4B;AAC5B,4DAAkC;AAClC,wDAA8B;AAC9B,0DAAgC;AAEhC,YAAY"}
@@ -0,0 +1 @@
1
+ export declare const AXPAuthMenuKeys: {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AXPAuthMenuKeys = void 0;
4
+ exports.AXPAuthMenuKeys = {};
5
+ //# sourceMappingURL=menu.keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/contracts/src/menu.keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,EAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const AXMPermissionsKeys: {
2
+ Auth: {
3
+ Management: string;
4
+ };
5
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AXMPermissionsKeys = void 0;
4
+ exports.AXMPermissionsKeys = {
5
+ Auth: {
6
+ Management: 'Auth:Permission:Management',
7
+ // TODO: Add permission keys when permissions are defined
8
+ },
9
+ };
10
+ //# sourceMappingURL=permission.keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE;QACJ,UAAU,EAAE,4BAA4B;QACxC,yDAAyD;KAC1D;CACF,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const RootConfig: {
2
+ readonly config: {
3
+ i18n: string;
4
+ module: string;
5
+ };
6
+ readonly module: {
7
+ readonly route: "auth";
8
+ readonly name: string;
9
+ readonly title: "@auth:module.title";
10
+ readonly icon: "fa-light fa-shield-keyhole";
11
+ };
12
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RootConfig = void 0;
4
+ const config = {
5
+ i18n: 'auth',
6
+ module: 'Auth',
7
+ };
8
+ exports.RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'auth',
12
+ name: config.module,
13
+ title: '@auth:module.title',
14
+ icon: 'fa-light fa-shield-keyhole',
15
+ },
16
+ };
17
+ //# sourceMappingURL=root-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/contracts/src/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,MAAM;CACf,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,4BAA4B;KACnC;CACO,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare enum AXPAuthSettings {
2
+ TwoFactorAuth = "Auth:Setting:Authentication.TwoFactorAuth",
3
+ PasswordComplexity = "Auth:Setting:Authentication.PasswordComplexity",
4
+ PasswordExpiryDays = "Auth:Setting:Authentication.PasswordExpiryDays",
5
+ MaxLoginAttempts = "Auth:Setting:Authentication.MaxLoginAttempts",
6
+ LockoutDuration = "Auth:Setting:Authentication.LockoutDuration",
7
+ LockWhenIdleEnabled = "Auth:Setting:SessionManagement.LockWhenIdleEnabled",
8
+ LockWhenIdleMinutes = "Auth:Setting:SessionManagement.LockWhenIdleMinutes",
9
+ InactiveSessionTermination = "Auth:Setting:SessionManagement.InactiveSessionTermination"
10
+ }
11
+ export declare const AXPAuthInactiveSessionTerminationOptions: {
12
+ readonly OneWeek: "oneWeek";
13
+ readonly OneMonth: "oneMonth";
14
+ readonly ThreeMonths: "threeMonths";
15
+ readonly SixMonths: "sixMonths";
16
+ };
17
+ export type AXPAuthInactiveSessionTerminationValue = (typeof AXPAuthInactiveSessionTerminationOptions)[keyof typeof AXPAuthInactiveSessionTerminationOptions];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AXPAuthInactiveSessionTerminationOptions = exports.AXPAuthSettings = void 0;
4
+ var AXPAuthSettings;
5
+ (function (AXPAuthSettings) {
6
+ AXPAuthSettings["TwoFactorAuth"] = "Auth:Setting:Authentication.TwoFactorAuth";
7
+ AXPAuthSettings["PasswordComplexity"] = "Auth:Setting:Authentication.PasswordComplexity";
8
+ AXPAuthSettings["PasswordExpiryDays"] = "Auth:Setting:Authentication.PasswordExpiryDays";
9
+ AXPAuthSettings["MaxLoginAttempts"] = "Auth:Setting:Authentication.MaxLoginAttempts";
10
+ AXPAuthSettings["LockoutDuration"] = "Auth:Setting:Authentication.LockoutDuration";
11
+ AXPAuthSettings["LockWhenIdleEnabled"] = "Auth:Setting:SessionManagement.LockWhenIdleEnabled";
12
+ AXPAuthSettings["LockWhenIdleMinutes"] = "Auth:Setting:SessionManagement.LockWhenIdleMinutes";
13
+ AXPAuthSettings["InactiveSessionTermination"] = "Auth:Setting:SessionManagement.InactiveSessionTermination";
14
+ })(AXPAuthSettings || (exports.AXPAuthSettings = AXPAuthSettings = {}));
15
+ exports.AXPAuthInactiveSessionTerminationOptions = {
16
+ OneWeek: 'oneWeek',
17
+ OneMonth: 'oneMonth',
18
+ ThreeMonths: 'threeMonths',
19
+ SixMonths: 'sixMonths',
20
+ };
21
+ //# sourceMappingURL=settings.keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/contracts/src/settings.keys.ts"],"names":[],"mappings":";;;AAAA,IAAY,eASX;AATD,WAAY,eAAe;IACzB,8EAA2D,CAAA;IAC3D,wFAAqE,CAAA;IACrE,wFAAqE,CAAA;IACrE,oFAAiE,CAAA;IACjE,kFAA+D,CAAA;IAC/D,6FAA0E,CAAA;IAC1E,6FAA0E,CAAA;IAC1E,2GAAwF,CAAA;AAC1F,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAEY,QAAA,wCAAwC,GAAG;IACtD,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;CACd,CAAC"}
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@acorex-platform/module-auth-server",
3
+ "version": "0.0.15",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "peerDependencies": {
8
+ "@nestjs/common": "^11.0.0",
9
+ "@acorex-platform/module-common-server": "0.0.15",
10
+ "@nestjs/passport": "^11.0.0",
11
+ "passport": "^0.7.0",
12
+ "passport-local": "^1.0.0",
13
+ "passport-jwt": "^4.0.1",
14
+ "@nestjs/jwt": "^11.0.0",
15
+ "@nestjs/config": "^11.0.0",
16
+ "bcrypt": "^5.1.1",
17
+ "uuid": "^10.0.0",
18
+ "cookie-parser": "^1.4.6",
19
+ "express": "^4.19.2",
20
+ "@acorex-platform/module-security-management-server": "0.0.15"
21
+ },
22
+ "exports": {
23
+ "./package.json": "./package.json",
24
+ ".": {
25
+ "types": "./src/index.d.ts",
26
+ "default": "./src/index.js"
27
+ },
28
+ "./contracts": {
29
+ "types": "./contracts/src/index.d.ts",
30
+ "default": "./contracts/src/index.js"
31
+ }
32
+ }
33
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/auth-server.module';
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./lib/auth-server.module"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/modules/auth/server/src/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC"}
@@ -0,0 +1,2 @@
1
+ export declare class AuthServerModule {
2
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthServerModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ let AuthServerModule = class AuthServerModule {
7
+ };
8
+ exports.AuthServerModule = AuthServerModule;
9
+ exports.AuthServerModule = AuthServerModule = tslib_1.__decorate([
10
+ (0, common_1.Module)({
11
+ imports: [],
12
+ exports: [],
13
+ })
14
+ ], AuthServerModule);
15
+ //# sourceMappingURL=auth-server.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-server.module.js","sourceRoot":"","sources":["../../../../../libs/modules/auth/server/src/lib/auth-server.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AAOjC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAI,CAAA;AAApB,4CAAgB;2BAAhB,gBAAgB;IAJ5B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACZ,CAAC;GACW,gBAAgB,CAAI"}