@pristine-ts/security 0.0.372 → 0.0.374
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/lib/cjs/managers/authorizer.manager.js +14 -1
- package/dist/lib/cjs/managers/authorizer.manager.js.map +1 -1
- package/dist/lib/cjs/managers/permission.manager.js +75 -6
- package/dist/lib/cjs/managers/permission.manager.js.map +1 -1
- package/dist/lib/esm/managers/authorizer.manager.js +14 -1
- package/dist/lib/esm/managers/authorizer.manager.js.map +1 -1
- package/dist/lib/esm/managers/permission.manager.js +75 -6
- package/dist/lib/esm/managers/permission.manager.js.map +1 -1
- package/package.json +4 -4
|
@@ -49,6 +49,7 @@ let AuthorizerManager = class AuthorizerManager {
|
|
|
49
49
|
* @param identity The identity making the request.
|
|
50
50
|
*/
|
|
51
51
|
isAuthorized(request, routeContext, container, identity) {
|
|
52
|
+
var _a, _b, _c;
|
|
52
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
54
|
// If there are no guards defined, we simply return that it is authorized.
|
|
54
55
|
if (!routeContext || routeContext[guard_decorator_1.guardMetadataKeyname] === undefined || Array.isArray(routeContext[guard_decorator_1.guardMetadataKeyname]) === false) {
|
|
@@ -64,7 +65,19 @@ let AuthorizerManager = class AuthorizerManager {
|
|
|
64
65
|
isAuthorized = isAuthorized && didAuthorize;
|
|
65
66
|
}
|
|
66
67
|
catch (e) {
|
|
67
|
-
this.logHandler.error("AuthorizerManager: Error while authorizing the request.", {
|
|
68
|
+
this.logHandler.error("AuthorizerManager: Error while authorizing the request.", {
|
|
69
|
+
highlights: {
|
|
70
|
+
errorMessage: (_a = e === null || e === void 0 ? void 0 : e.message) !== null && _a !== void 0 ? _a : "Unknown error",
|
|
71
|
+
requestUrl: `${request.httpMethod} ${request.url}`,
|
|
72
|
+
identityId: (_b = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _b !== void 0 ? _b : "No Identity Id found",
|
|
73
|
+
identityClaims: (_c = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _c !== void 0 ? _c : "No claims found",
|
|
74
|
+
},
|
|
75
|
+
extra: {
|
|
76
|
+
error: e,
|
|
77
|
+
request,
|
|
78
|
+
identity,
|
|
79
|
+
}
|
|
80
|
+
}, security_module_keyname_1.SecurityModuleKeyname);
|
|
68
81
|
isAuthorized = false;
|
|
69
82
|
}
|
|
70
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorizer.manager.js","sourceRoot":"","sources":["../../../../src/managers/authorizer.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAiE;AAEjE,gDAAyE;AAEzE,8DAAwD;AACxD,wEAAiE;AAEjE,mEAAmE;AAEnE;;;GAGG;AAII,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE1B;;;;OAIG;IACH,YAAmE,UAA+B,EAC9D,YAA0B;QADK,eAAU,GAAV,UAAU,CAAqB;QAC9D,iBAAY,GAAZ,YAAY,CAAc;IAC9D,CAAC;IAED;;;;;;OAMG;IACU,YAAY,CAAC,OAAgB,EAAE,YAAiB,EAAE,SAA8B,EAAE,QAA4B
|
|
1
|
+
{"version":3,"file":"authorizer.manager.js","sourceRoot":"","sources":["../../../../src/managers/authorizer.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAiE;AAEjE,gDAAyE;AAEzE,8DAAwD;AACxD,wEAAiE;AAEjE,mEAAmE;AAEnE;;;GAGG;AAII,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE1B;;;;OAIG;IACH,YAAmE,UAA+B,EAC9D,YAA0B;QADK,eAAU,GAAV,UAAU,CAAqB;QAC9D,iBAAY,GAAZ,YAAY,CAAc;IAC9D,CAAC;IAED;;;;;;OAMG;IACU,YAAY,CAAC,OAAgB,EAAE,YAAiB,EAAE,SAA8B,EAAE,QAA4B;;;YACvH,0EAA0E;YAE1E,IAAG,CAAC,YAAY,IAAI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YAED,OAAO,YAAY,CAAC;;KACvB;CACJ,CAAA;AA1DY,8CAAiB;4BAAjB,iBAAiB;IAH7B,IAAA,qBAAY,EAAC,+CAAqB,CAAC;IACnC,IAAA,YAAG,EAAC,4BAA4B,CAAC;IACjC,IAAA,qBAAU,GAAE;IAQW,WAAA,IAAA,iBAAM,EAAC,qBAAqB,CAAC,CAAA;6CACC,4BAAY;GARrD,iBAAiB,CA0D7B"}
|
|
@@ -49,35 +49,93 @@ let PermissionManager = class PermissionManager {
|
|
|
49
49
|
* @param votingStrategy The voting strategy that defines how to merge the votes. Default is DenyOnUnanimousAbstention.
|
|
50
50
|
*/
|
|
51
51
|
hasAccessToResource(identity, action, resource, votingStrategy = voting_strategy_enum_1.VotingStrategyEnum.DenyOnUnanimousAbstention) {
|
|
52
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
52
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
54
|
if (this.voters.length === 0) {
|
|
54
55
|
this.logHandler.warning("PermissionManager: No voters were found, this could lead to unexpected behavior. Make sure that you have registered voters in your application.", {
|
|
56
|
+
highlights: {
|
|
57
|
+
identityId: (_a = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _a !== void 0 ? _a : "No Identity Id found",
|
|
58
|
+
identityClaims: (_b = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _b !== void 0 ? _b : "No claims found",
|
|
59
|
+
action,
|
|
60
|
+
},
|
|
55
61
|
extra: {
|
|
56
62
|
identity,
|
|
57
|
-
action,
|
|
58
63
|
resource,
|
|
64
|
+
votingStrategy,
|
|
59
65
|
}
|
|
60
66
|
}, security_module_keyname_1.SecurityModuleKeyname);
|
|
61
67
|
}
|
|
62
68
|
const votes = [];
|
|
63
69
|
for (const voter of this.voters) {
|
|
64
70
|
if (voter.supports(resource) === false) {
|
|
65
|
-
this.logHandler.debug("PermissionManager: voter does not support this resource.", {
|
|
71
|
+
this.logHandler.debug("PermissionManager: voter does not support this resource.", {
|
|
72
|
+
highlights: {
|
|
73
|
+
identityId: (_c = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _c !== void 0 ? _c : "No Identity Id found",
|
|
74
|
+
identityClaims: (_d = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _d !== void 0 ? _d : "No claims found",
|
|
75
|
+
action,
|
|
76
|
+
voter: voter.constructor.name,
|
|
77
|
+
},
|
|
78
|
+
extra: {
|
|
79
|
+
identity,
|
|
80
|
+
resource,
|
|
81
|
+
votingStrategy,
|
|
82
|
+
}
|
|
83
|
+
}, security_module_keyname_1.SecurityModuleKeyname);
|
|
66
84
|
continue;
|
|
67
85
|
}
|
|
68
86
|
try {
|
|
69
87
|
const vote = yield voter.vote(identity, action, resource);
|
|
70
88
|
const message = "PermissionManager: Voter " + voter.constructor.name + " voted: " + vote;
|
|
71
89
|
if (vote === vote_enum_1.VoteEnum.Deny) { // When it's being denied, it usually mean that something is important to be noticed.
|
|
72
|
-
this.logHandler.info(message, {
|
|
90
|
+
this.logHandler.info(message, {
|
|
91
|
+
highlights: {
|
|
92
|
+
identityId: (_e = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _e !== void 0 ? _e : "No Identity Id found",
|
|
93
|
+
identityClaims: (_f = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _f !== void 0 ? _f : "No claims found",
|
|
94
|
+
action,
|
|
95
|
+
voter: voter.constructor.name,
|
|
96
|
+
vote,
|
|
97
|
+
},
|
|
98
|
+
extra: {
|
|
99
|
+
identity,
|
|
100
|
+
resource,
|
|
101
|
+
votingStrategy,
|
|
102
|
+
}
|
|
103
|
+
}, security_module_keyname_1.SecurityModuleKeyname);
|
|
73
104
|
}
|
|
74
105
|
else {
|
|
75
|
-
this.logHandler.debug(message, {
|
|
106
|
+
this.logHandler.debug(message, {
|
|
107
|
+
highlights: {
|
|
108
|
+
identityId: (_g = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _g !== void 0 ? _g : "No Identity Id found",
|
|
109
|
+
identityClaims: (_h = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _h !== void 0 ? _h : "No claims found",
|
|
110
|
+
action,
|
|
111
|
+
voter: voter.constructor.name,
|
|
112
|
+
vote,
|
|
113
|
+
},
|
|
114
|
+
extra: {
|
|
115
|
+
identity,
|
|
116
|
+
resource,
|
|
117
|
+
votingStrategy,
|
|
118
|
+
}
|
|
119
|
+
}, security_module_keyname_1.SecurityModuleKeyname);
|
|
76
120
|
}
|
|
77
121
|
votes.push(vote);
|
|
78
122
|
}
|
|
79
123
|
catch (error) {
|
|
80
|
-
this.logHandler.error("PermissionManager: Error while voting, please check the logs for more details.", {
|
|
124
|
+
this.logHandler.error("PermissionManager: Error while voting, please check the logs for more details.", {
|
|
125
|
+
highlights: {
|
|
126
|
+
errorMessage: (_j = error.message) !== null && _j !== void 0 ? _j : "Unknown error",
|
|
127
|
+
identityId: (_k = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _k !== void 0 ? _k : "No Identity Id found",
|
|
128
|
+
identityClaims: (_l = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _l !== void 0 ? _l : "No claims found",
|
|
129
|
+
action,
|
|
130
|
+
voter: voter.constructor.name,
|
|
131
|
+
},
|
|
132
|
+
extra: {
|
|
133
|
+
error,
|
|
134
|
+
identity,
|
|
135
|
+
resource,
|
|
136
|
+
votingStrategy,
|
|
137
|
+
}
|
|
138
|
+
}, security_module_keyname_1.SecurityModuleKeyname);
|
|
81
139
|
throw error;
|
|
82
140
|
}
|
|
83
141
|
}
|
|
@@ -87,7 +145,18 @@ let PermissionManager = class PermissionManager {
|
|
|
87
145
|
shouldGrantAccess = false;
|
|
88
146
|
}
|
|
89
147
|
}
|
|
90
|
-
this.logHandler.info("PermissionManager: Access to resource " + resource.constructor.name + " was " + (shouldGrantAccess ? "GRANTED" : "DENIED"), {
|
|
148
|
+
this.logHandler.info("PermissionManager: Access to resource " + resource.constructor.name + " was " + (shouldGrantAccess ? "GRANTED" : "DENIED"), {
|
|
149
|
+
highlights: {
|
|
150
|
+
resourceName: resource.constructor.name,
|
|
151
|
+
access: shouldGrantAccess ? "GRANTED" : "DENIED",
|
|
152
|
+
identityId: (_m = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _m !== void 0 ? _m : "No Identity Id found",
|
|
153
|
+
identityClaims: (_o = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _o !== void 0 ? _o : "No claims found",
|
|
154
|
+
}, extra: {
|
|
155
|
+
identity,
|
|
156
|
+
resource,
|
|
157
|
+
votingStrategy,
|
|
158
|
+
}
|
|
159
|
+
}, security_module_keyname_1.SecurityModuleKeyname);
|
|
91
160
|
return shouldGrantAccess;
|
|
92
161
|
});
|
|
93
162
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.manager.js","sourceRoot":"","sources":["../../../../src/managers/permission.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuD;AAEvD,wEAAiE;AAEjE,kDAA4C;AAC5C,gDAAgF;AAChF,wEAAiE;AAEjE;;GAEG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE1B;;;;;OAKG;IACH,YAA+E,MAAwB,EACpC,UAA+B;QADnB,WAAM,GAAN,MAAM,CAAkB;QACpC,eAAU,GAAV,UAAU,CAAqB;IAClG,CAAC;IAED;;;;;;OAMG;IACG,mBAAmB,CAAC,QAA2B,EAAE,MAAc,EAAE,QAAgB,EAAE,iBAAqC,yCAAkB,CAAC,yBAAyB
|
|
1
|
+
{"version":3,"file":"permission.manager.js","sourceRoot":"","sources":["../../../../src/managers/permission.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuD;AAEvD,wEAAiE;AAEjE,kDAA4C;AAC5C,gDAAgF;AAChF,wEAAiE;AAEjE;;GAEG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE1B;;;;;OAKG;IACH,YAA+E,MA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I;oBACvC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;oBAChD,UAAU,EAAE,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,EAAE,mCAAI,sBAAsB;oBAClD,cAAc,EAAE,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,mCAAI,iBAAiB;iBACxD,EAAE,KAAK,EAAE;oBACN,QAAQ;oBACR,QAAQ;oBACR,cAAc;iBACnB;aACF,EAAE,+CAAqB,CAAC,CAAC;YAE1B,OAAO,iBAAiB,CAAC;;KAC5B;CACJ,CAAA;AA3IY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,qBAAU,GAAE;IASW,WAAA,IAAA,oBAAS,EAAC,iCAAwB,CAAC,KAAK,CAAC,CAAA;IACzC,WAAA,IAAA,iBAAM,EAAC,qBAAqB,CAAC,CAAA;;GATxC,iBAAiB,CA2I7B"}
|
|
@@ -46,6 +46,7 @@ let AuthorizerManager = class AuthorizerManager {
|
|
|
46
46
|
* @param identity The identity making the request.
|
|
47
47
|
*/
|
|
48
48
|
isAuthorized(request, routeContext, container, identity) {
|
|
49
|
+
var _a, _b, _c;
|
|
49
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
51
|
// If there are no guards defined, we simply return that it is authorized.
|
|
51
52
|
if (!routeContext || routeContext[guardMetadataKeyname] === undefined || Array.isArray(routeContext[guardMetadataKeyname]) === false) {
|
|
@@ -61,7 +62,19 @@ let AuthorizerManager = class AuthorizerManager {
|
|
|
61
62
|
isAuthorized = isAuthorized && didAuthorize;
|
|
62
63
|
}
|
|
63
64
|
catch (e) {
|
|
64
|
-
this.logHandler.error("AuthorizerManager: Error while authorizing the request.", {
|
|
65
|
+
this.logHandler.error("AuthorizerManager: Error while authorizing the request.", {
|
|
66
|
+
highlights: {
|
|
67
|
+
errorMessage: (_a = e === null || e === void 0 ? void 0 : e.message) !== null && _a !== void 0 ? _a : "Unknown error",
|
|
68
|
+
requestUrl: `${request.httpMethod} ${request.url}`,
|
|
69
|
+
identityId: (_b = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _b !== void 0 ? _b : "No Identity Id found",
|
|
70
|
+
identityClaims: (_c = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _c !== void 0 ? _c : "No claims found",
|
|
71
|
+
},
|
|
72
|
+
extra: {
|
|
73
|
+
error: e,
|
|
74
|
+
request,
|
|
75
|
+
identity,
|
|
76
|
+
}
|
|
77
|
+
}, SecurityModuleKeyname);
|
|
65
78
|
isAuthorized = false;
|
|
66
79
|
}
|
|
67
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorizer.manager.js","sourceRoot":"","sources":["../../../../src/managers/authorizer.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAsB,MAAM,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAEjE,OAAO,EAAoB,YAAY,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAC,YAAY,EAAC,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAC;AAEnE;;;GAGG;AAII,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE1B;;;;OAIG;IACH,YAAmE,UAA+B,EAC9D,YAA0B;QADK,eAAU,GAAV,UAAU,CAAqB;QAC9D,iBAAY,GAAZ,YAAY,CAAc;IAC9D,CAAC;IAED;;;;;;OAMG;IACU,YAAY,CAAC,OAAgB,EAAE,YAAiB,EAAE,SAA8B,EAAE,QAA4B
|
|
1
|
+
{"version":3,"file":"authorizer.manager.js","sourceRoot":"","sources":["../../../../src/managers/authorizer.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAsB,MAAM,EAAE,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AAC,UAAU,CAAC,KAAK,CAAC,yDAAyD,EAAE;wBAC7E,UAAU,EAAE;4BACR,YAAY,EAAE,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,mCAAI,eAAe;4BAC3C,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,EAAE;4BAClD,UAAU,EAAE,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,EAAE,mCAAI,sBAAsB;4BAClD,cAAc,EAAE,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,mCAAI,iBAAiB;yBACxD;wBACD,KAAK,EAAE;4BACH,KAAK,EAAE,CAAC;4BACR,OAAO;4BACP,QAAQ;yBACX;qBACJ,EAAE,qBAAqB,CAAC,CAAC;oBAC1B,YAAY,GAAG,KAAK,CAAC;gBACzB,CAAC;YACL,CAAC;YAED,OAAO,YAAY,CAAC;;KACvB;CACJ,CAAA;AA1DY,iBAAiB;IAH7B,YAAY,CAAC,qBAAqB,CAAC;IACnC,GAAG,CAAC,4BAA4B,CAAC;IACjC,UAAU,EAAE;IAQW,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;6CACC,YAAY;GARrD,iBAAiB,CA0D7B"}
|
|
@@ -46,35 +46,93 @@ let PermissionManager = class PermissionManager {
|
|
|
46
46
|
* @param votingStrategy The voting strategy that defines how to merge the votes. Default is DenyOnUnanimousAbstention.
|
|
47
47
|
*/
|
|
48
48
|
hasAccessToResource(identity, action, resource, votingStrategy = VotingStrategyEnum.DenyOnUnanimousAbstention) {
|
|
49
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
49
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
51
|
if (this.voters.length === 0) {
|
|
51
52
|
this.logHandler.warning("PermissionManager: No voters were found, this could lead to unexpected behavior. Make sure that you have registered voters in your application.", {
|
|
53
|
+
highlights: {
|
|
54
|
+
identityId: (_a = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _a !== void 0 ? _a : "No Identity Id found",
|
|
55
|
+
identityClaims: (_b = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _b !== void 0 ? _b : "No claims found",
|
|
56
|
+
action,
|
|
57
|
+
},
|
|
52
58
|
extra: {
|
|
53
59
|
identity,
|
|
54
|
-
action,
|
|
55
60
|
resource,
|
|
61
|
+
votingStrategy,
|
|
56
62
|
}
|
|
57
63
|
}, SecurityModuleKeyname);
|
|
58
64
|
}
|
|
59
65
|
const votes = [];
|
|
60
66
|
for (const voter of this.voters) {
|
|
61
67
|
if (voter.supports(resource) === false) {
|
|
62
|
-
this.logHandler.debug("PermissionManager: voter does not support this resource.", {
|
|
68
|
+
this.logHandler.debug("PermissionManager: voter does not support this resource.", {
|
|
69
|
+
highlights: {
|
|
70
|
+
identityId: (_c = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _c !== void 0 ? _c : "No Identity Id found",
|
|
71
|
+
identityClaims: (_d = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _d !== void 0 ? _d : "No claims found",
|
|
72
|
+
action,
|
|
73
|
+
voter: voter.constructor.name,
|
|
74
|
+
},
|
|
75
|
+
extra: {
|
|
76
|
+
identity,
|
|
77
|
+
resource,
|
|
78
|
+
votingStrategy,
|
|
79
|
+
}
|
|
80
|
+
}, SecurityModuleKeyname);
|
|
63
81
|
continue;
|
|
64
82
|
}
|
|
65
83
|
try {
|
|
66
84
|
const vote = yield voter.vote(identity, action, resource);
|
|
67
85
|
const message = "PermissionManager: Voter " + voter.constructor.name + " voted: " + vote;
|
|
68
86
|
if (vote === VoteEnum.Deny) { // When it's being denied, it usually mean that something is important to be noticed.
|
|
69
|
-
this.logHandler.info(message, {
|
|
87
|
+
this.logHandler.info(message, {
|
|
88
|
+
highlights: {
|
|
89
|
+
identityId: (_e = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _e !== void 0 ? _e : "No Identity Id found",
|
|
90
|
+
identityClaims: (_f = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _f !== void 0 ? _f : "No claims found",
|
|
91
|
+
action,
|
|
92
|
+
voter: voter.constructor.name,
|
|
93
|
+
vote,
|
|
94
|
+
},
|
|
95
|
+
extra: {
|
|
96
|
+
identity,
|
|
97
|
+
resource,
|
|
98
|
+
votingStrategy,
|
|
99
|
+
}
|
|
100
|
+
}, SecurityModuleKeyname);
|
|
70
101
|
}
|
|
71
102
|
else {
|
|
72
|
-
this.logHandler.debug(message, {
|
|
103
|
+
this.logHandler.debug(message, {
|
|
104
|
+
highlights: {
|
|
105
|
+
identityId: (_g = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _g !== void 0 ? _g : "No Identity Id found",
|
|
106
|
+
identityClaims: (_h = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _h !== void 0 ? _h : "No claims found",
|
|
107
|
+
action,
|
|
108
|
+
voter: voter.constructor.name,
|
|
109
|
+
vote,
|
|
110
|
+
},
|
|
111
|
+
extra: {
|
|
112
|
+
identity,
|
|
113
|
+
resource,
|
|
114
|
+
votingStrategy,
|
|
115
|
+
}
|
|
116
|
+
}, SecurityModuleKeyname);
|
|
73
117
|
}
|
|
74
118
|
votes.push(vote);
|
|
75
119
|
}
|
|
76
120
|
catch (error) {
|
|
77
|
-
this.logHandler.error("PermissionManager: Error while voting, please check the logs for more details.", {
|
|
121
|
+
this.logHandler.error("PermissionManager: Error while voting, please check the logs for more details.", {
|
|
122
|
+
highlights: {
|
|
123
|
+
errorMessage: (_j = error.message) !== null && _j !== void 0 ? _j : "Unknown error",
|
|
124
|
+
identityId: (_k = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _k !== void 0 ? _k : "No Identity Id found",
|
|
125
|
+
identityClaims: (_l = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _l !== void 0 ? _l : "No claims found",
|
|
126
|
+
action,
|
|
127
|
+
voter: voter.constructor.name,
|
|
128
|
+
},
|
|
129
|
+
extra: {
|
|
130
|
+
error,
|
|
131
|
+
identity,
|
|
132
|
+
resource,
|
|
133
|
+
votingStrategy,
|
|
134
|
+
}
|
|
135
|
+
}, SecurityModuleKeyname);
|
|
78
136
|
throw error;
|
|
79
137
|
}
|
|
80
138
|
}
|
|
@@ -84,7 +142,18 @@ let PermissionManager = class PermissionManager {
|
|
|
84
142
|
shouldGrantAccess = false;
|
|
85
143
|
}
|
|
86
144
|
}
|
|
87
|
-
this.logHandler.info("PermissionManager: Access to resource " + resource.constructor.name + " was " + (shouldGrantAccess ? "GRANTED" : "DENIED"), {
|
|
145
|
+
this.logHandler.info("PermissionManager: Access to resource " + resource.constructor.name + " was " + (shouldGrantAccess ? "GRANTED" : "DENIED"), {
|
|
146
|
+
highlights: {
|
|
147
|
+
resourceName: resource.constructor.name,
|
|
148
|
+
access: shouldGrantAccess ? "GRANTED" : "DENIED",
|
|
149
|
+
identityId: (_m = identity === null || identity === void 0 ? void 0 : identity.id) !== null && _m !== void 0 ? _m : "No Identity Id found",
|
|
150
|
+
identityClaims: (_o = identity === null || identity === void 0 ? void 0 : identity.claims) !== null && _o !== void 0 ? _o : "No claims found",
|
|
151
|
+
}, extra: {
|
|
152
|
+
identity,
|
|
153
|
+
resource,
|
|
154
|
+
votingStrategy,
|
|
155
|
+
}
|
|
156
|
+
}, SecurityModuleKeyname);
|
|
88
157
|
return shouldGrantAccess;
|
|
89
158
|
});
|
|
90
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.manager.js","sourceRoot":"","sources":["../../../../src/managers/permission.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAoB,wBAAwB,EAAC,MAAM,q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J,CAAA;AA3IY,iBAAiB;IAD7B,UAAU,EAAE;IASW,WAAA,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;IACzC,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;;GATxC,iBAAiB,CA2I7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/security",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.374",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/security.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/security.module.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pristine-ts/common": "^0.0.
|
|
24
|
-
"@pristine-ts/logging": "^0.0.
|
|
23
|
+
"@pristine-ts/common": "^0.0.374",
|
|
24
|
+
"@pristine-ts/logging": "^0.0.374"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/jsonwebtoken": "^8.5.1"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"src/*.{js,ts}"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "d553e7687a35c295579f7b09ec68091928d27209"
|
|
64
64
|
}
|