exodus-framework 2.0.970 → 2.0.971

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.
@@ -1 +1 @@
1
- {"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/middlewares/access.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAY,YAAY,EAAE,MAAM,cAAc,CAAC;AAMtD,cAAM,gBAAiB,SAAQ,cAAc;IAO3C,WAAW,UAAW,YAAY,EAAE,KAAG,cAAc,CAWnD;IAEF,SAAS,EAAE,cAAc,CAkHvB;CACH;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/middlewares/access.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5C,cAAM,gBAAiB,SAAQ,cAAc;IAO3C,WAAW,UAAW,YAAY,EAAE,KAAG,cAAc,CAWnD;IAEF,SAAS,EAAE,cAAc,CA+FvB;CACH;AAED,eAAe,gBAAgB,CAAC"}
@@ -91,20 +91,6 @@ class AccessMiddleware extends _controller.default {
91
91
  requestor.trigger = applicationId;
92
92
  envUuid = data.payload.envUuid;
93
93
  }
94
- } else if (exodusServiceId) {
95
- const data = await _security.default.getService().verifySignature(exodusServiceId, _security.default.getService().getServicePublicKey());
96
- if (!data) {
97
- throw new _app.HttpError({
98
- message: 'Token de serviço inválido',
99
- statusCode: _http.EHttpResponseCode.informationUnauthorized
100
- });
101
- }
102
- requestor.database = data['account'].database;
103
- requestor.environmentId = data['account'].envUuid;
104
- requestor.name = data['account'].name;
105
- requestor.id = data['account'].uuid;
106
- requestor.trigger = exodusServiceId;
107
- envUuid = data['account'].envUuid;
108
94
  } else if (tenantId) {
109
95
  if (!account || !exodusServiceId) {
110
96
  throw new _app.HttpError({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.970",
3
+ "version": "2.0.971",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",