@nsshunt/stsdatamanagement 1.12.8 → 1.12.11

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/blcauth.js CHANGED
@@ -211,7 +211,7 @@ class BLCAuth
211
211
  for (let j=0; j < permissions.length; j++) {
212
212
  const permission = permissions[j];
213
213
  if (!apiPermissions.includes(permission)) {
214
- return { status: status.error, error: 'M2M permission not found within API available permission list.', detail: { message: `Permission not found within API available permission list: [${permission}]` }};
214
+ return { status: status.error, error: `M2M permission not found within API available permission list.`, detail: { message: `Permission not found within API: [${clientName}:${clientId}] available permission list: [${permission}]` }};
215
215
  }
216
216
  }
217
217
  return null;
package/datagenerator.js CHANGED
@@ -175,7 +175,8 @@ class DataGenerator
175
175
 
176
176
 
177
177
  let pa = [ ];
178
- let numCPUs = require('os').cpus().length;
178
+ let numCPUs = goptions.useCPUs;
179
+ //let numCPUs = require('os').cpus().length;
179
180
  let blocksize = Math.floor(iterations / numCPUs);
180
181
  let lastBlockSize = blocksize + (iterations % numCPUs);
181
182
 
@@ -52,7 +52,8 @@
52
52
  "permissions": [
53
53
  "login",
54
54
  "logout",
55
- "session.read"
55
+ "session.read",
56
+ "session.update"
56
57
  ],
57
58
  "M2MApplications": [
58
59
  {
@@ -61,6 +62,14 @@
61
62
  "permissions": [
62
63
  "session.read"
63
64
  ]
65
+ },
66
+ {
67
+ "clientName": "STSTestingService",
68
+ "clientId": "4Mtb3ABdSzZvSz4T51HPJhT14znVnqVDRFiZsvDNAOg=",
69
+ "permissions": [
70
+ "session.read",
71
+ "session.update"
72
+ ]
64
73
  }
65
74
  ]
66
75
  },
@@ -82,6 +91,13 @@
82
91
  "permissions": [
83
92
  "token"
84
93
  ]
94
+ },
95
+ {
96
+ "clientName": "STSTestingService",
97
+ "clientId": "4Mtb3ABdSzZvSz4T51HPJhT14znVnqVDRFiZsvDNAOg=",
98
+ "permissions": [
99
+ "token"
100
+ ]
85
101
  }
86
102
  ]
87
103
  },
@@ -59,6 +59,12 @@
59
59
  "clientSecret": "bJzwAHA+U1Pn7ya9lWEH80a03Ic9tVlQ+OfHrc5ydqI4MNlWWvPPvK+c7Q==",
60
60
  "type": "Service"
61
61
  },
62
+ "STSTestingService": {
63
+ "clientName": "STSTestingService",
64
+ "clientId": "4Mtb3ABdSzZvSz4T51HPJhT14znVnqVDRFiZsvDNAOg=",
65
+ "clientSecret": "4jdqBshjc9+XADMyIemoHTwHqVI1//UcSK/gL20rPUrvy2P+78auYEH2ng==",
66
+ "type": "Service"
67
+ },
62
68
  "STSAuthenticate": {
63
69
  "clientName": "STSAuthenticateSPA",
64
70
  "clientId": "v4qBrds3Autl/i86xT+5z0K53kJ/2hHTfxNo0QO/0Jk=",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsshunt/stsdatamanagement",
3
- "version": "1.12.8",
3
+ "version": "1.12.11",
4
4
  "description": "STS Data Management Modules, Utilities and Services",
5
5
  "main": "dbaccess.js",
6
6
  "dependencies": {