@mondart/nestjs-common-module-iam 3.1.0 → 3.2.0
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.
- package/dist/guards/iam-context.guard.d.ts +9 -1
- package/dist/guards/iam-context.guard.d.ts.map +1 -1
- package/dist/guards/iam-context.guard.js +81 -13
- package/dist/guards/iam-context.guard.js.map +1 -1
- package/dist/interfaces/iam-context-options.interface.d.ts +2 -1
- package/dist/interfaces/iam-context-options.interface.d.ts.map +1 -1
- package/dist/interfaces/iam-context-options.interface.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
2
|
import { Reflector } from '@nestjs/core';
|
|
3
3
|
import { IamEntityAccessService } from '../services/iam-entity-access.service';
|
|
4
|
+
import { IamContextModuleOptions } from '../interfaces/iam-context-options.interface';
|
|
4
5
|
export declare class IamContextGuard implements CanActivate {
|
|
5
6
|
private readonly reflector;
|
|
6
7
|
private readonly iamEntityAccessService;
|
|
7
|
-
|
|
8
|
+
private readonly moduleOptions;
|
|
9
|
+
constructor(reflector: Reflector, iamEntityAccessService: IamEntityAccessService, moduleOptions: IamContextModuleOptions);
|
|
8
10
|
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
11
|
+
private shouldIgnoreController;
|
|
12
|
+
private matchController;
|
|
13
|
+
private resolveEntityAccessOptions;
|
|
14
|
+
private resolveScopeOptions;
|
|
15
|
+
private findEntityPreset;
|
|
16
|
+
private mergeAccess;
|
|
9
17
|
}
|
|
10
18
|
//# sourceMappingURL=iam-context.guard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-context.guard.d.ts","sourceRoot":"","sources":["../../src/guards/iam-context.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,
|
|
1
|
+
{"version":3,"file":"iam-context.guard.d.ts","sourceRoot":"","sources":["../../src/guards/iam-context.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAKjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAEL,uBAAuB,EAGxB,MAAM,6CAA6C,CAAC;AAQrD,qBACa,eAAgB,YAAW,WAAW;IAE/C,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IAGvC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,SAAS,EAAE,SAAS,EACpB,sBAAsB,EAAE,sBAAsB,EAG9C,aAAa,EAAE,uBAAuB;IAGnD,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA2F9D,OAAO,CAAC,sBAAsB;IAe9B,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,WAAW;CAkBpB"}
|
|
@@ -8,6 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.IamContextGuard = void 0;
|
|
13
16
|
const common_1 = require("@nestjs/common");
|
|
@@ -15,49 +18,114 @@ const core_1 = require("@nestjs/core");
|
|
|
15
18
|
const nestjs_common_module_core_1 = require("@mondart/nestjs-common-module-core");
|
|
16
19
|
const iam_decorator_key_const_1 = require("../constants/iam-decorator-key.const");
|
|
17
20
|
const iam_entity_access_service_1 = require("../services/iam-entity-access.service");
|
|
21
|
+
const iam_context_options_interface_1 = require("../interfaces/iam-context-options.interface");
|
|
18
22
|
let IamContextGuard = class IamContextGuard {
|
|
19
|
-
constructor(reflector, iamEntityAccessService) {
|
|
23
|
+
constructor(reflector, iamEntityAccessService, moduleOptions) {
|
|
20
24
|
this.reflector = reflector;
|
|
21
25
|
this.iamEntityAccessService = iamEntityAccessService;
|
|
26
|
+
this.moduleOptions = moduleOptions;
|
|
22
27
|
}
|
|
23
28
|
async canActivate(context) {
|
|
24
|
-
|
|
29
|
+
const request = context.switchToHttp().getRequest();
|
|
30
|
+
const controller = context.getClass();
|
|
31
|
+
if (this.shouldIgnoreController(controller)) {
|
|
25
32
|
return true;
|
|
26
33
|
}
|
|
27
|
-
const request = context.switchToHttp().getRequest();
|
|
28
34
|
const isPublicRoute = this.reflector.getAllAndOverride(iam_decorator_key_const_1.IAM_PUBLIC_ROUTE, [context.getHandler(), context.getClass()]);
|
|
29
35
|
if (isPublicRoute) {
|
|
30
36
|
return true;
|
|
31
37
|
}
|
|
32
38
|
const iamContext = (0, nestjs_common_module_core_1.getIamContext)(request);
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
const decoratorAllowedUserTypes = this.reflector.getAllAndOverride(iam_decorator_key_const_1.IAM_ROUTE_USER_TYPE, [context.getHandler(), context.getClass()]);
|
|
40
|
+
const allowedUserTypes = decoratorAllowedUserTypes ??
|
|
41
|
+
this.moduleOptions.defaultAllowedUserTypes ??
|
|
42
|
+
[];
|
|
43
|
+
if (!decoratorAllowedUserTypes &&
|
|
44
|
+
!this.moduleOptions.allowRoutesWithoutIamDecorator &&
|
|
45
|
+
!allowedUserTypes.length) {
|
|
46
|
+
throw new common_1.ForbiddenException('IAM route user type is not configured');
|
|
47
|
+
}
|
|
37
48
|
const currentUserType = this.iamEntityAccessService.resolveUserType(iamContext, allowedUserTypes);
|
|
38
49
|
request[iam_decorator_key_const_1.IAM_REQUEST_USER_TYPE_KEY] = currentUserType;
|
|
39
50
|
if (!allowedUserTypes.includes(currentUserType)) {
|
|
40
51
|
throw new common_1.ForbiddenException();
|
|
41
52
|
}
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
request[iam_decorator_key_const_1.IAM_REQUEST_ENTITY_SCOPE_OPTIONS_KEY] =
|
|
53
|
+
const rawScopeOptions = this.reflector.getAllAndOverride(iam_decorator_key_const_1.IAM_ENTITY_SCOPE_KEY, [context.getHandler(), context.getClass()]);
|
|
54
|
+
if (rawScopeOptions) {
|
|
55
|
+
request[iam_decorator_key_const_1.IAM_REQUEST_ENTITY_SCOPE_OPTIONS_KEY] =
|
|
56
|
+
this.resolveScopeOptions(rawScopeOptions);
|
|
45
57
|
}
|
|
46
|
-
const
|
|
47
|
-
if (!
|
|
58
|
+
const rawEntityAccessOptions = this.reflector.getAllAndOverride(iam_decorator_key_const_1.IAM_ENTITY_ACCESS_KEY, [context.getHandler(), context.getClass()]);
|
|
59
|
+
if (!rawEntityAccessOptions) {
|
|
48
60
|
return true;
|
|
49
61
|
}
|
|
62
|
+
const entityAccessOptions = this.resolveEntityAccessOptions(rawEntityAccessOptions);
|
|
50
63
|
const hasAccess = await this.iamEntityAccessService.hasEntityAccess(entityAccessOptions, request, iamContext, currentUserType);
|
|
51
64
|
if (!hasAccess) {
|
|
52
65
|
throw new common_1.ForbiddenException(`You do not have access to this ${entityAccessOptions.resourceName ?? 'resource'}`);
|
|
53
66
|
}
|
|
54
67
|
return true;
|
|
55
68
|
}
|
|
69
|
+
shouldIgnoreController(controller) {
|
|
70
|
+
const select = this.moduleOptions.controllers?.select ?? [];
|
|
71
|
+
const ignore = this.moduleOptions.controllers?.ignore ?? [];
|
|
72
|
+
if (this.matchController(controller, ignore)) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
if (select.length && !this.matchController(controller, select)) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
matchController(controller, matchers) {
|
|
81
|
+
return matchers.some((matcher) => {
|
|
82
|
+
if (typeof matcher === 'string') {
|
|
83
|
+
return matcher === controller.name;
|
|
84
|
+
}
|
|
85
|
+
return matcher === controller;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
resolveEntityAccessOptions(decoratorOptions) {
|
|
89
|
+
const preset = this.findEntityPreset(decoratorOptions.entity);
|
|
90
|
+
return {
|
|
91
|
+
...decoratorOptions,
|
|
92
|
+
resourceName: decoratorOptions.resourceName ?? preset?.resourceName,
|
|
93
|
+
access: this.mergeAccess(this.moduleOptions.entityAccess?.defaultAccess, preset?.access, decoratorOptions.access),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
resolveScopeOptions(decoratorOptions) {
|
|
97
|
+
const preset = decoratorOptions.entity
|
|
98
|
+
? this.findEntityPreset(decoratorOptions.entity)
|
|
99
|
+
: undefined;
|
|
100
|
+
return {
|
|
101
|
+
...this.moduleOptions.entityAccess?.defaultScope,
|
|
102
|
+
...preset?.scope,
|
|
103
|
+
...decoratorOptions,
|
|
104
|
+
access: this.mergeAccess(this.moduleOptions.entityAccess?.defaultAccess, preset?.scope?.access ?? preset?.access, decoratorOptions.access),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
findEntityPreset(entity) {
|
|
108
|
+
return this.moduleOptions.entityAccess?.presets?.find((preset) => {
|
|
109
|
+
return preset.entity === entity;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
mergeAccess(globalAccess, presetAccess, decoratorAccess) {
|
|
113
|
+
return {
|
|
114
|
+
agent: {
|
|
115
|
+
...globalAccess?.agent,
|
|
116
|
+
...presetAccess?.agent,
|
|
117
|
+
...decoratorAccess?.agent,
|
|
118
|
+
},
|
|
119
|
+
user: decoratorAccess?.user ?? presetAccess?.user ?? globalAccess?.user,
|
|
120
|
+
guest: decoratorAccess?.guest ?? presetAccess?.guest ?? globalAccess?.guest,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
56
123
|
};
|
|
57
124
|
exports.IamContextGuard = IamContextGuard;
|
|
58
125
|
exports.IamContextGuard = IamContextGuard = __decorate([
|
|
59
126
|
(0, common_1.Injectable)(),
|
|
127
|
+
__param(2, (0, common_1.Inject)(iam_context_options_interface_1.IAM_CONTEXT_MODULE_OPTIONS)),
|
|
60
128
|
__metadata("design:paramtypes", [core_1.Reflector,
|
|
61
|
-
iam_entity_access_service_1.IamEntityAccessService])
|
|
129
|
+
iam_entity_access_service_1.IamEntityAccessService, Object])
|
|
62
130
|
], IamContextGuard);
|
|
63
131
|
//# sourceMappingURL=iam-context.guard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-context.guard.js","sourceRoot":"","sources":["../../src/guards/iam-context.guard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iam-context.guard.js","sourceRoot":"","sources":["../../src/guards/iam-context.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,uCAAyC;AACzC,kFAAmE;AACnE,kFAO8C;AAE9C,qFAA+E;AAC/E,+FAKqD;AAS9C,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YACmB,SAAoB,EACpB,sBAA8C,EAG9C,aAAsC;QAJtC,cAAS,GAAT,SAAS,CAAW;QACpB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAG9C,kBAAa,GAAb,aAAa,CAAyB;IACtD,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAAyB;QACzC,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;QAEpD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QAEtC,IAAI,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC;QACd,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AAC;IAC7C,CAAC;IAEO,WAAW,CACjB,YAAoC,EACpC,YAAoC,EACpC,eAAuC;QAEvC,OAAO;YACL,KAAK,EAAE;gBACL,GAAG,YAAY,EAAE,KAAK;gBACtB,GAAG,YAAY,EAAE,KAAK;gBACtB,GAAG,eAAe,EAAE,KAAK;aAC1B;YAED,IAAI,EAAE,eAAe,EAAE,IAAI,IAAI,YAAY,EAAE,IAAI,IAAI,YAAY,EAAE,IAAI;YAEvE,KAAK,EACH,eAAe,EAAE,KAAK,IAAI,YAAY,EAAE,KAAK,IAAI,YAAY,EAAE,KAAK;SACvE,CAAC;IACJ,CAAC;CACF,CAAA;AAhMY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,0DAA0B,CAAC,CAAA;qCAHP,gBAAS;QACI,kDAAsB;GAHtD,eAAe,CAgM3B"}
|
|
@@ -2,7 +2,8 @@ import { Type } from '@nestjs/common';
|
|
|
2
2
|
import { EntityTarget } from 'typeorm';
|
|
3
3
|
import { IamUserTypeEnum } from '../enums/iam-user-type.enum';
|
|
4
4
|
import { ApplyIamEntityScopeOptions, EntityAccessByRole } from './iam-entity-access.interface';
|
|
5
|
-
export type
|
|
5
|
+
export type IamControllerClass = Type<unknown>;
|
|
6
|
+
export type IamControllerMatcher = string | IamControllerClass;
|
|
6
7
|
export interface IamEntityAccessPreset<T = any> {
|
|
7
8
|
entity: EntityTarget<T>;
|
|
8
9
|
access?: EntityAccessByRole<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-context-options.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/iam-context-options.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EACL,0BAA0B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CAAC;KACxC,CAAC;CACH;AAED,eAAO,MAAM,0BAA0B,eAAuC,CAAC;AAE/E,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CACvD,IAAI,CACF,uBAAuB,EACvB,yBAAyB,GAAG,gCAAgC,CAC7D,CACF,GACC,IAAI,CACF,uBAAuB,EACvB,yBAAyB,GAAG,gCAAgC,CAa/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-context-options.interface.js","sourceRoot":"","sources":["../../src/interfaces/iam-context-options.interface.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"iam-context-options.interface.js","sourceRoot":"","sources":["../../src/interfaces/iam-context-options.interface.ts"],"names":[],"mappings":";;;AAuEa,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAElE,QAAA,kCAAkC,GASzC;IACJ,uBAAuB,EAAE,EAAE;IAC3B,8BAA8B,EAAE,KAAK;IACrC,WAAW,EAAE;QACX,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;KACX;IACD,YAAY,EAAE;QACZ,aAAa,EAAE,SAAS;QACxB,YAAY,EAAE,SAAS;QACvB,OAAO,EAAE,EAAE;KACZ;CACF,CAAC"}
|