perimeterx-js-core 0.18.2 → 0.19.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/lib/cjs/additional_activity_handler/AdditionalActivityHandlerUtils.js +1 -1
- package/lib/cjs/blocker/utils.js +1 -3
- package/lib/cjs/config/ConfigurationBase.js +98 -91
- package/lib/cjs/config/ConfigurationBuilderBase.js +8 -7
- package/lib/cjs/config/defaults/DefaultStaticConfigurationParams.js +0 -1
- package/lib/cjs/config/remote_config/DefaultRemoteConfigUpdater.js +1 -1
- package/lib/cjs/config/remote_config/RemoteConfigUtils.js +1 -1
- package/lib/cjs/context/DefaultContext.js +4 -1
- package/lib/cjs/custom_parameters/CustomParametersUtils.js +1 -1
- package/lib/cjs/telemetry/DefaultTelemetry.js +14 -4
- package/lib/cjs/utils/constants.js +1 -1
- package/lib/cjs/utils/utils.js +25 -1
- package/lib/esm/additional_activity_handler/AdditionalActivityHandlerUtils.js +1 -1
- package/lib/esm/blocker/utils.js +1 -2
- package/lib/esm/config/ConfigurationBase.js +100 -91
- package/lib/esm/config/ConfigurationBuilderBase.js +7 -6
- package/lib/esm/config/defaults/DefaultStaticConfigurationParams.js +0 -1
- package/lib/esm/config/remote_config/DefaultRemoteConfigUpdater.js +1 -1
- package/lib/esm/config/remote_config/RemoteConfigUtils.js +1 -1
- package/lib/esm/context/DefaultContext.js +5 -2
- package/lib/esm/custom_parameters/CustomParametersUtils.js +1 -1
- package/lib/esm/telemetry/DefaultTelemetry.js +15 -5
- package/lib/esm/utils/constants.js +1 -1
- package/lib/esm/utils/utils.js +23 -0
- package/lib/types/config/ConfigurationBase.d.ts +8 -3
- package/lib/types/config/IConfiguration.d.ts +14 -6
- package/lib/types/config/params/StaticConfigurationParams.d.ts +0 -1
- package/lib/types/telemetry/model/TelemetryActivity.d.ts +7 -2
- package/lib/types/utils/constants.d.ts +1 -1
- package/lib/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -17,8 +17,10 @@ var logger_1 = require("../logger");
|
|
|
17
17
|
var utils_1 = require("../utils");
|
|
18
18
|
var ConfigurationBase = /** @class */ (function () {
|
|
19
19
|
function ConfigurationBase(params, defaultParams) {
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
20
|
+
this.defaultConfigParams = __assign(__assign({}, defaults_1.DEFAULT_CONFIGURATION_PARAMS), defaultParams);
|
|
21
|
+
this.activeConfigParams = this.initialize(params, this.defaultConfigParams);
|
|
22
|
+
this.staticConfigParams = params;
|
|
23
|
+
this.internalLogger = this.createInternalLogger(this.activeConfigParams.px_logger_severity);
|
|
22
24
|
}
|
|
23
25
|
ConfigurationBase.prototype.initialize = function (params, defaultParams) {
|
|
24
26
|
var _this = this;
|
|
@@ -74,8 +76,18 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
74
76
|
ConfigurationBase.prototype.createInternalLogger = function (loggerSeverity) {
|
|
75
77
|
return new logger_1.DefaultLogger(loggerSeverity, false);
|
|
76
78
|
};
|
|
77
|
-
ConfigurationBase.prototype.
|
|
78
|
-
|
|
79
|
+
ConfigurationBase.prototype.addRemoteConfig = function (remoteConfigParams) {
|
|
80
|
+
this.remoteConfigParams = remoteConfigParams;
|
|
81
|
+
this.activeConfigParams = this.initialize(__assign(__assign({}, this.staticConfigParams), remoteConfigParams), this.defaultConfigParams);
|
|
82
|
+
};
|
|
83
|
+
ConfigurationBase.prototype.getActiveConfig = function () {
|
|
84
|
+
return Object.assign({}, this.activeConfigParams);
|
|
85
|
+
};
|
|
86
|
+
ConfigurationBase.prototype.getStaticConfig = function () {
|
|
87
|
+
return Object.assign({}, this.staticConfigParams);
|
|
88
|
+
};
|
|
89
|
+
ConfigurationBase.prototype.getRemoteConfig = function () {
|
|
90
|
+
return Object.assign({}, this.remoteConfigParams);
|
|
79
91
|
};
|
|
80
92
|
Object.defineProperty(ConfigurationBase.prototype, "moduleVersion", {
|
|
81
93
|
get: function () {
|
|
@@ -93,147 +105,149 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
93
105
|
});
|
|
94
106
|
Object.defineProperty(ConfigurationBase.prototype, "appId", {
|
|
95
107
|
get: function () {
|
|
96
|
-
return this.
|
|
108
|
+
return this.activeConfigParams.px_app_id;
|
|
97
109
|
},
|
|
98
110
|
enumerable: false,
|
|
99
111
|
configurable: true
|
|
100
112
|
});
|
|
101
113
|
Object.defineProperty(ConfigurationBase.prototype, "authToken", {
|
|
102
114
|
get: function () {
|
|
103
|
-
return this.
|
|
115
|
+
return this.activeConfigParams.px_auth_token;
|
|
104
116
|
},
|
|
105
117
|
enumerable: false,
|
|
106
118
|
configurable: true
|
|
107
119
|
});
|
|
108
120
|
Object.defineProperty(ConfigurationBase.prototype, "blockingScore", {
|
|
109
121
|
get: function () {
|
|
110
|
-
return this.
|
|
122
|
+
return this.activeConfigParams.px_blocking_score;
|
|
111
123
|
},
|
|
112
124
|
enumerable: false,
|
|
113
125
|
configurable: true
|
|
114
126
|
});
|
|
115
127
|
Object.defineProperty(ConfigurationBase.prototype, "bypassMonitorHeader", {
|
|
116
128
|
get: function () {
|
|
117
|
-
return this.
|
|
129
|
+
return this.activeConfigParams.px_bypass_monitor_header;
|
|
118
130
|
},
|
|
119
131
|
enumerable: false,
|
|
120
132
|
configurable: true
|
|
121
133
|
});
|
|
122
134
|
Object.defineProperty(ConfigurationBase.prototype, "cookieSecret", {
|
|
123
135
|
get: function () {
|
|
124
|
-
return this.
|
|
136
|
+
return this.activeConfigParams.px_cookie_secret;
|
|
125
137
|
},
|
|
126
138
|
enumerable: false,
|
|
127
139
|
configurable: true
|
|
128
140
|
});
|
|
129
141
|
Object.defineProperty(ConfigurationBase.prototype, "customCookieHeader", {
|
|
130
142
|
get: function () {
|
|
131
|
-
return this.
|
|
143
|
+
return this.activeConfigParams.px_custom_cookie_header;
|
|
132
144
|
},
|
|
133
145
|
enumerable: false,
|
|
134
146
|
configurable: true
|
|
135
147
|
});
|
|
136
148
|
Object.defineProperty(ConfigurationBase.prototype, "customLogo", {
|
|
137
149
|
get: function () {
|
|
138
|
-
return this.
|
|
150
|
+
return this.activeConfigParams.px_custom_logo;
|
|
139
151
|
},
|
|
140
152
|
enumerable: false,
|
|
141
153
|
configurable: true
|
|
142
154
|
});
|
|
143
155
|
Object.defineProperty(ConfigurationBase.prototype, "enforcedRoutes", {
|
|
144
156
|
get: function () {
|
|
145
|
-
return this.
|
|
157
|
+
return this.activeConfigParams.px_enforced_routes;
|
|
146
158
|
},
|
|
147
159
|
enumerable: false,
|
|
148
160
|
configurable: true
|
|
149
161
|
});
|
|
150
162
|
Object.defineProperty(ConfigurationBase.prototype, "customIsEnforcedRequest", {
|
|
151
163
|
get: function () {
|
|
152
|
-
return this.
|
|
164
|
+
return this.activeConfigParams.px_custom_is_enforced_request;
|
|
153
165
|
},
|
|
154
166
|
enumerable: false,
|
|
155
167
|
configurable: true
|
|
156
168
|
});
|
|
157
169
|
Object.defineProperty(ConfigurationBase.prototype, "filteredExtensions", {
|
|
158
170
|
get: function () {
|
|
159
|
-
return this.
|
|
171
|
+
return this.activeConfigParams.px_filter_by_extension.map(function (ext) {
|
|
172
|
+
return ext.startsWith('.') ? ext : ".".concat(ext);
|
|
173
|
+
});
|
|
160
174
|
},
|
|
161
175
|
enumerable: false,
|
|
162
176
|
configurable: true
|
|
163
177
|
});
|
|
164
178
|
Object.defineProperty(ConfigurationBase.prototype, "filteredHttpMethods", {
|
|
165
179
|
get: function () {
|
|
166
|
-
return this.
|
|
180
|
+
return this.activeConfigParams.px_filter_by_http_method;
|
|
167
181
|
},
|
|
168
182
|
enumerable: false,
|
|
169
183
|
configurable: true
|
|
170
184
|
});
|
|
171
185
|
Object.defineProperty(ConfigurationBase.prototype, "filteredIps", {
|
|
172
186
|
get: function () {
|
|
173
|
-
return this.
|
|
187
|
+
return this.activeConfigParams.px_filter_by_ip;
|
|
174
188
|
},
|
|
175
189
|
enumerable: false,
|
|
176
190
|
configurable: true
|
|
177
191
|
});
|
|
178
192
|
Object.defineProperty(ConfigurationBase.prototype, "filteredRoutes", {
|
|
179
193
|
get: function () {
|
|
180
|
-
return this.
|
|
194
|
+
return this.activeConfigParams.px_filter_by_route;
|
|
181
195
|
},
|
|
182
196
|
enumerable: false,
|
|
183
197
|
configurable: true
|
|
184
198
|
});
|
|
185
199
|
Object.defineProperty(ConfigurationBase.prototype, "filteredUserAgents", {
|
|
186
200
|
get: function () {
|
|
187
|
-
return this.
|
|
201
|
+
return this.activeConfigParams.px_filter_by_user_agent;
|
|
188
202
|
},
|
|
189
203
|
enumerable: false,
|
|
190
204
|
configurable: true
|
|
191
205
|
});
|
|
192
206
|
Object.defineProperty(ConfigurationBase.prototype, "firstPartyEnabled", {
|
|
193
207
|
get: function () {
|
|
194
|
-
return this.
|
|
208
|
+
return this.activeConfigParams.px_first_party_enabled;
|
|
195
209
|
},
|
|
196
210
|
enumerable: false,
|
|
197
211
|
configurable: true
|
|
198
212
|
});
|
|
199
213
|
Object.defineProperty(ConfigurationBase.prototype, "customIsFilteredRequest", {
|
|
200
214
|
get: function () {
|
|
201
|
-
return this.
|
|
215
|
+
return this.activeConfigParams.px_custom_is_filtered_request;
|
|
202
216
|
},
|
|
203
217
|
enumerable: false,
|
|
204
218
|
configurable: true
|
|
205
219
|
});
|
|
206
220
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyPrefix", {
|
|
207
221
|
get: function () {
|
|
208
|
-
return this.
|
|
222
|
+
return this.activeConfigParams.px_custom_first_party_prefix;
|
|
209
223
|
},
|
|
210
224
|
enumerable: false,
|
|
211
225
|
configurable: true
|
|
212
226
|
});
|
|
213
227
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartySensorEndpoint", {
|
|
214
228
|
get: function () {
|
|
215
|
-
return this.
|
|
229
|
+
return this.activeConfigParams.px_custom_first_party_sensor_endpoint;
|
|
216
230
|
},
|
|
217
231
|
enumerable: false,
|
|
218
232
|
configurable: true
|
|
219
233
|
});
|
|
220
234
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyXhrEndpoint", {
|
|
221
235
|
get: function () {
|
|
222
|
-
return this.
|
|
236
|
+
return this.activeConfigParams.px_custom_first_party_xhr_endpoint;
|
|
223
237
|
},
|
|
224
238
|
enumerable: false,
|
|
225
239
|
configurable: true
|
|
226
240
|
});
|
|
227
241
|
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyCaptchaEndpoint", {
|
|
228
242
|
get: function () {
|
|
229
|
-
return this.
|
|
243
|
+
return this.activeConfigParams.px_custom_first_party_captcha_endpoint;
|
|
230
244
|
},
|
|
231
245
|
enumerable: false,
|
|
232
246
|
configurable: true
|
|
233
247
|
});
|
|
234
248
|
Object.defineProperty(ConfigurationBase.prototype, "firstPartyTimeoutMs", {
|
|
235
249
|
get: function () {
|
|
236
|
-
return this.
|
|
250
|
+
return this.activeConfigParams.px_first_party_timeout_ms;
|
|
237
251
|
},
|
|
238
252
|
enumerable: false,
|
|
239
253
|
configurable: true
|
|
@@ -247,196 +261,196 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
247
261
|
});
|
|
248
262
|
Object.defineProperty(ConfigurationBase.prototype, "moduleEnabled", {
|
|
249
263
|
get: function () {
|
|
250
|
-
return this.
|
|
264
|
+
return this.activeConfigParams.px_module_enabled;
|
|
251
265
|
},
|
|
252
266
|
enumerable: false,
|
|
253
267
|
configurable: true
|
|
254
268
|
});
|
|
255
269
|
Object.defineProperty(ConfigurationBase.prototype, "moduleMode", {
|
|
256
270
|
get: function () {
|
|
257
|
-
return this.
|
|
271
|
+
return this.activeConfigParams.px_module_mode;
|
|
258
272
|
},
|
|
259
273
|
enumerable: false,
|
|
260
274
|
configurable: true
|
|
261
275
|
});
|
|
262
276
|
Object.defineProperty(ConfigurationBase.prototype, "monitoredRoutes", {
|
|
263
277
|
get: function () {
|
|
264
|
-
return this.
|
|
278
|
+
return this.activeConfigParams.px_monitored_routes;
|
|
265
279
|
},
|
|
266
280
|
enumerable: false,
|
|
267
281
|
configurable: true
|
|
268
282
|
});
|
|
269
283
|
Object.defineProperty(ConfigurationBase.prototype, "customIsMonitoredRequest", {
|
|
270
284
|
get: function () {
|
|
271
|
-
return this.
|
|
285
|
+
return this.activeConfigParams.px_custom_is_monitored_request;
|
|
272
286
|
},
|
|
273
287
|
enumerable: false,
|
|
274
288
|
configurable: true
|
|
275
289
|
});
|
|
276
290
|
Object.defineProperty(ConfigurationBase.prototype, "s2sTimeout", {
|
|
277
291
|
get: function () {
|
|
278
|
-
return this.
|
|
292
|
+
return this.activeConfigParams.px_s2s_timeout;
|
|
279
293
|
},
|
|
280
294
|
enumerable: false,
|
|
281
295
|
configurable: true
|
|
282
296
|
});
|
|
283
297
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveHeaders", {
|
|
284
298
|
get: function () {
|
|
285
|
-
return this.
|
|
299
|
+
return this.activeConfigParams.px_sensitive_headers;
|
|
286
300
|
},
|
|
287
301
|
enumerable: false,
|
|
288
302
|
configurable: true
|
|
289
303
|
});
|
|
290
304
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveRoutes", {
|
|
291
305
|
get: function () {
|
|
292
|
-
return this.
|
|
306
|
+
return this.activeConfigParams.px_sensitive_routes;
|
|
293
307
|
},
|
|
294
308
|
enumerable: false,
|
|
295
309
|
configurable: true
|
|
296
310
|
});
|
|
297
311
|
Object.defineProperty(ConfigurationBase.prototype, "customIsSensitiveRequest", {
|
|
298
312
|
get: function () {
|
|
299
|
-
return this.
|
|
313
|
+
return this.activeConfigParams.px_custom_is_sensitive_request;
|
|
300
314
|
},
|
|
301
315
|
enumerable: false,
|
|
302
316
|
configurable: true
|
|
303
317
|
});
|
|
304
318
|
Object.defineProperty(ConfigurationBase.prototype, "advancedBlockingResponseEnabled", {
|
|
305
319
|
get: function () {
|
|
306
|
-
return this.
|
|
320
|
+
return this.activeConfigParams.px_advanced_blocking_response_enabled;
|
|
307
321
|
},
|
|
308
322
|
enumerable: false,
|
|
309
323
|
configurable: true
|
|
310
324
|
});
|
|
311
325
|
Object.defineProperty(ConfigurationBase.prototype, "backendScoreApiUrl", {
|
|
312
326
|
get: function () {
|
|
313
|
-
return this.
|
|
327
|
+
return this.activeConfigParams.px_backend_url;
|
|
314
328
|
},
|
|
315
329
|
enumerable: false,
|
|
316
330
|
configurable: true
|
|
317
331
|
});
|
|
318
332
|
Object.defineProperty(ConfigurationBase.prototype, "ipHeaders", {
|
|
319
333
|
get: function () {
|
|
320
|
-
return this.
|
|
334
|
+
return this.activeConfigParams.px_ip_headers;
|
|
321
335
|
},
|
|
322
336
|
enumerable: false,
|
|
323
337
|
configurable: true
|
|
324
338
|
});
|
|
325
339
|
Object.defineProperty(ConfigurationBase.prototype, "backendCaptchaUrl", {
|
|
326
340
|
get: function () {
|
|
327
|
-
return this.
|
|
341
|
+
return this.activeConfigParams.px_backend_captcha_url;
|
|
328
342
|
},
|
|
329
343
|
enumerable: false,
|
|
330
344
|
configurable: true
|
|
331
345
|
});
|
|
332
346
|
Object.defineProperty(ConfigurationBase.prototype, "backendClientUrl", {
|
|
333
347
|
get: function () {
|
|
334
|
-
return this.
|
|
348
|
+
return this.activeConfigParams.px_backend_client_url;
|
|
335
349
|
},
|
|
336
350
|
enumerable: false,
|
|
337
351
|
configurable: true
|
|
338
352
|
});
|
|
339
353
|
Object.defineProperty(ConfigurationBase.prototype, "backendCollectorUrl", {
|
|
340
354
|
get: function () {
|
|
341
|
-
return this.
|
|
355
|
+
return this.activeConfigParams.px_backend_collector_url;
|
|
342
356
|
},
|
|
343
357
|
enumerable: false,
|
|
344
358
|
configurable: true
|
|
345
359
|
});
|
|
346
360
|
Object.defineProperty(ConfigurationBase.prototype, "cssRef", {
|
|
347
361
|
get: function () {
|
|
348
|
-
return this.
|
|
362
|
+
return this.activeConfigParams.px_css_ref;
|
|
349
363
|
},
|
|
350
364
|
enumerable: false,
|
|
351
365
|
configurable: true
|
|
352
366
|
});
|
|
353
367
|
Object.defineProperty(ConfigurationBase.prototype, "jsRef", {
|
|
354
368
|
get: function () {
|
|
355
|
-
return this.
|
|
369
|
+
return this.activeConfigParams.px_js_ref;
|
|
356
370
|
},
|
|
357
371
|
enumerable: false,
|
|
358
372
|
configurable: true
|
|
359
373
|
});
|
|
360
374
|
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMaxIterations", {
|
|
361
375
|
get: function () {
|
|
362
|
-
return this.
|
|
376
|
+
return this.activeConfigParams.px_risk_cookie_max_iterations;
|
|
363
377
|
},
|
|
364
378
|
enumerable: false,
|
|
365
379
|
configurable: true
|
|
366
380
|
});
|
|
367
381
|
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMinIterations", {
|
|
368
382
|
get: function () {
|
|
369
|
-
return this.
|
|
383
|
+
return this.activeConfigParams.px_risk_cookie_min_iterations;
|
|
370
384
|
},
|
|
371
385
|
enumerable: false,
|
|
372
386
|
configurable: true
|
|
373
387
|
});
|
|
374
388
|
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMaxLength", {
|
|
375
389
|
get: function () {
|
|
376
|
-
return this.
|
|
390
|
+
return this.activeConfigParams.px_risk_cookie_max_length;
|
|
377
391
|
},
|
|
378
392
|
enumerable: false,
|
|
379
393
|
configurable: true
|
|
380
394
|
});
|
|
381
395
|
Object.defineProperty(ConfigurationBase.prototype, "userAgentMaxLength", {
|
|
382
396
|
get: function () {
|
|
383
|
-
return this.
|
|
397
|
+
return this.activeConfigParams.px_user_agent_max_length;
|
|
384
398
|
},
|
|
385
399
|
enumerable: false,
|
|
386
400
|
configurable: true
|
|
387
401
|
});
|
|
388
402
|
Object.defineProperty(ConfigurationBase.prototype, "maxActivityBatchSize", {
|
|
389
403
|
get: function () {
|
|
390
|
-
return this.
|
|
404
|
+
return this.activeConfigParams.px_max_activity_batch_size;
|
|
391
405
|
},
|
|
392
406
|
enumerable: false,
|
|
393
407
|
configurable: true
|
|
394
408
|
});
|
|
395
409
|
Object.defineProperty(ConfigurationBase.prototype, "activityBatchTimeoutMs", {
|
|
396
410
|
get: function () {
|
|
397
|
-
return this.
|
|
411
|
+
return this.activeConfigParams.px_batch_activities_timeout_ms;
|
|
398
412
|
},
|
|
399
413
|
enumerable: false,
|
|
400
414
|
configurable: true
|
|
401
415
|
});
|
|
402
416
|
Object.defineProperty(ConfigurationBase.prototype, "graphqlEnabled", {
|
|
403
417
|
get: function () {
|
|
404
|
-
return this.
|
|
418
|
+
return this.activeConfigParams.px_graphql_enabled;
|
|
405
419
|
},
|
|
406
420
|
enumerable: false,
|
|
407
421
|
configurable: true
|
|
408
422
|
});
|
|
409
423
|
Object.defineProperty(ConfigurationBase.prototype, "graphqlRoutes", {
|
|
410
424
|
get: function () {
|
|
411
|
-
return this.
|
|
425
|
+
return this.activeConfigParams.px_graphql_routes;
|
|
412
426
|
},
|
|
413
427
|
enumerable: false,
|
|
414
428
|
configurable: true
|
|
415
429
|
});
|
|
416
430
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveGraphqlOperationNames", {
|
|
417
431
|
get: function () {
|
|
418
|
-
return this.
|
|
432
|
+
return this.activeConfigParams.px_sensitive_graphql_operation_names;
|
|
419
433
|
},
|
|
420
434
|
enumerable: false,
|
|
421
435
|
configurable: true
|
|
422
436
|
});
|
|
423
437
|
Object.defineProperty(ConfigurationBase.prototype, "sensitiveGraphqlOperationTypes", {
|
|
424
438
|
get: function () {
|
|
425
|
-
return this.
|
|
439
|
+
return this.activeConfigParams.px_sensitive_graphql_operation_types;
|
|
426
440
|
},
|
|
427
441
|
enumerable: false,
|
|
428
442
|
configurable: true
|
|
429
443
|
});
|
|
430
444
|
Object.defineProperty(ConfigurationBase.prototype, "enrichCustomParameters", {
|
|
431
445
|
get: function () {
|
|
432
|
-
return this.
|
|
446
|
+
return this.activeConfigParams.px_enrich_custom_parameters || null;
|
|
433
447
|
},
|
|
434
448
|
enumerable: false,
|
|
435
449
|
configurable: true
|
|
436
450
|
});
|
|
437
451
|
Object.defineProperty(ConfigurationBase.prototype, "additionalActivityHandler", {
|
|
438
452
|
get: function () {
|
|
439
|
-
return this.
|
|
453
|
+
return this.activeConfigParams.px_additional_activity_handler || null;
|
|
440
454
|
},
|
|
441
455
|
enumerable: false,
|
|
442
456
|
configurable: true
|
|
@@ -450,224 +464,217 @@ var ConfigurationBase = /** @class */ (function () {
|
|
|
450
464
|
});
|
|
451
465
|
Object.defineProperty(ConfigurationBase.prototype, "corsSupportEnabled", {
|
|
452
466
|
get: function () {
|
|
453
|
-
return this.
|
|
467
|
+
return this.activeConfigParams.px_cors_support_enabled;
|
|
454
468
|
},
|
|
455
469
|
enumerable: false,
|
|
456
470
|
configurable: true
|
|
457
471
|
});
|
|
458
472
|
Object.defineProperty(ConfigurationBase.prototype, "corsCustomPreflightHandler", {
|
|
459
473
|
get: function () {
|
|
460
|
-
return this.
|
|
474
|
+
return this.activeConfigParams.px_cors_custom_preflight_handler || null;
|
|
461
475
|
},
|
|
462
476
|
enumerable: false,
|
|
463
477
|
configurable: true
|
|
464
478
|
});
|
|
465
479
|
Object.defineProperty(ConfigurationBase.prototype, "corsPreflightRequestFilterEnabled", {
|
|
466
480
|
get: function () {
|
|
467
|
-
return this.
|
|
481
|
+
return this.activeConfigParams.px_cors_preflight_request_filter_enabled;
|
|
468
482
|
},
|
|
469
483
|
enumerable: false,
|
|
470
484
|
configurable: true
|
|
471
485
|
});
|
|
472
486
|
Object.defineProperty(ConfigurationBase.prototype, "corsCreateCustomBlockResponseHeaders", {
|
|
473
487
|
get: function () {
|
|
474
|
-
return this.
|
|
488
|
+
return this.activeConfigParams.px_cors_create_custom_block_response_headers || null;
|
|
475
489
|
},
|
|
476
490
|
enumerable: false,
|
|
477
491
|
configurable: true
|
|
478
492
|
});
|
|
479
493
|
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieAdditionalFieldNames", {
|
|
480
494
|
get: function () {
|
|
481
|
-
return this.
|
|
495
|
+
return this.activeConfigParams.px_jwt_cookie_additional_field_names;
|
|
482
496
|
},
|
|
483
497
|
enumerable: false,
|
|
484
498
|
configurable: true
|
|
485
499
|
});
|
|
486
500
|
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieName", {
|
|
487
501
|
get: function () {
|
|
488
|
-
return this.
|
|
502
|
+
return this.activeConfigParams.px_jwt_cookie_name;
|
|
489
503
|
},
|
|
490
504
|
enumerable: false,
|
|
491
505
|
configurable: true
|
|
492
506
|
});
|
|
493
507
|
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieUserIdFieldName", {
|
|
494
508
|
get: function () {
|
|
495
|
-
return this.
|
|
509
|
+
return this.activeConfigParams.px_jwt_cookie_user_id_field_name;
|
|
496
510
|
},
|
|
497
511
|
enumerable: false,
|
|
498
512
|
configurable: true
|
|
499
513
|
});
|
|
500
514
|
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderAdditionalFieldNames", {
|
|
501
515
|
get: function () {
|
|
502
|
-
return this.
|
|
516
|
+
return this.activeConfigParams.px_jwt_header_additional_field_names;
|
|
503
517
|
},
|
|
504
518
|
enumerable: false,
|
|
505
519
|
configurable: true
|
|
506
520
|
});
|
|
507
521
|
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderName", {
|
|
508
522
|
get: function () {
|
|
509
|
-
return this.
|
|
523
|
+
return this.activeConfigParams.px_jwt_header_name;
|
|
510
524
|
},
|
|
511
525
|
enumerable: false,
|
|
512
526
|
configurable: true
|
|
513
527
|
});
|
|
514
528
|
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderUserIdFieldName", {
|
|
515
529
|
get: function () {
|
|
516
|
-
return this.
|
|
530
|
+
return this.activeConfigParams.px_jwt_header_user_id_field_name;
|
|
517
531
|
},
|
|
518
532
|
enumerable: false,
|
|
519
533
|
configurable: true
|
|
520
534
|
});
|
|
521
535
|
Object.defineProperty(ConfigurationBase.prototype, "ciEnabled", {
|
|
522
536
|
get: function () {
|
|
523
|
-
return this.
|
|
537
|
+
return this.activeConfigParams.px_login_credentials_extraction_enabled;
|
|
524
538
|
},
|
|
525
539
|
enumerable: false,
|
|
526
540
|
configurable: true
|
|
527
541
|
});
|
|
528
542
|
Object.defineProperty(ConfigurationBase.prototype, "loggerAuthToken", {
|
|
529
543
|
get: function () {
|
|
530
|
-
return this.
|
|
544
|
+
return this.activeConfigParams.px_logger_auth_token;
|
|
531
545
|
},
|
|
532
546
|
enumerable: false,
|
|
533
547
|
configurable: true
|
|
534
548
|
});
|
|
535
549
|
Object.defineProperty(ConfigurationBase.prototype, "ciEndpoints", {
|
|
536
550
|
get: function () {
|
|
537
|
-
return this.
|
|
551
|
+
return this.activeConfigParams.px_login_credentials_extraction;
|
|
538
552
|
},
|
|
539
553
|
enumerable: false,
|
|
540
554
|
configurable: true
|
|
541
555
|
});
|
|
542
556
|
Object.defineProperty(ConfigurationBase.prototype, "ciCompromisedCredentialsHeaderName", {
|
|
543
557
|
get: function () {
|
|
544
|
-
return this.
|
|
558
|
+
return this.activeConfigParams.px_compromised_credentials_header;
|
|
545
559
|
},
|
|
546
560
|
enumerable: false,
|
|
547
561
|
configurable: true
|
|
548
562
|
});
|
|
549
563
|
Object.defineProperty(ConfigurationBase.prototype, "ciSendRawUsernameOnAdditionalS2SActivity", {
|
|
550
564
|
get: function () {
|
|
551
|
-
return this.
|
|
565
|
+
return this.activeConfigParams.px_send_raw_username_on_additional_s2s_activity;
|
|
552
566
|
},
|
|
553
567
|
enumerable: false,
|
|
554
568
|
configurable: true
|
|
555
569
|
});
|
|
556
570
|
Object.defineProperty(ConfigurationBase.prototype, "ciAutomaticAdditionalS2SEnabled", {
|
|
557
571
|
get: function () {
|
|
558
|
-
return this.
|
|
572
|
+
return this.activeConfigParams.px_automatic_additional_s2s_activity_enabled;
|
|
559
573
|
},
|
|
560
574
|
enumerable: false,
|
|
561
575
|
configurable: true
|
|
562
576
|
});
|
|
563
577
|
Object.defineProperty(ConfigurationBase.prototype, "ciAdditionalS2SHeaderEnabled", {
|
|
564
578
|
get: function () {
|
|
565
|
-
return this.
|
|
579
|
+
return this.activeConfigParams.px_additional_s2s_activity_header_enabled;
|
|
566
580
|
},
|
|
567
581
|
enumerable: false,
|
|
568
582
|
configurable: true
|
|
569
583
|
});
|
|
570
584
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultVersion", {
|
|
571
585
|
get: function () {
|
|
572
|
-
return this.
|
|
586
|
+
return this.activeConfigParams.px_credentials_intelligence_version;
|
|
573
587
|
},
|
|
574
588
|
enumerable: false,
|
|
575
589
|
configurable: true
|
|
576
590
|
});
|
|
577
591
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulReportingMethod", {
|
|
578
592
|
get: function () {
|
|
579
|
-
return this.
|
|
593
|
+
return this.activeConfigParams.px_login_successful_reporting_method;
|
|
580
594
|
},
|
|
581
595
|
enumerable: false,
|
|
582
596
|
configurable: true
|
|
583
597
|
});
|
|
584
598
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulStatus", {
|
|
585
599
|
get: function () {
|
|
586
|
-
return this.
|
|
600
|
+
return this.activeConfigParams.px_login_successful_status;
|
|
587
601
|
},
|
|
588
602
|
enumerable: false,
|
|
589
603
|
configurable: true
|
|
590
604
|
});
|
|
591
605
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulBodyRegex", {
|
|
592
606
|
get: function () {
|
|
593
|
-
return this.
|
|
607
|
+
return this.activeConfigParams.px_login_successful_body_regex;
|
|
594
608
|
},
|
|
595
609
|
enumerable: false,
|
|
596
610
|
configurable: true
|
|
597
611
|
});
|
|
598
612
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulHeaderName", {
|
|
599
613
|
get: function () {
|
|
600
|
-
return this.
|
|
614
|
+
return this.activeConfigParams.px_login_successful_header_name;
|
|
601
615
|
},
|
|
602
616
|
enumerable: false,
|
|
603
617
|
configurable: true
|
|
604
618
|
});
|
|
605
619
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulHeaderValue", {
|
|
606
620
|
get: function () {
|
|
607
|
-
return this.
|
|
621
|
+
return this.activeConfigParams.px_login_successful_header_value;
|
|
608
622
|
},
|
|
609
623
|
enumerable: false,
|
|
610
624
|
configurable: true
|
|
611
625
|
});
|
|
612
626
|
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulCustomCallback", {
|
|
613
627
|
get: function () {
|
|
614
|
-
return this.
|
|
628
|
+
return this.activeConfigParams.px_login_successful_custom_callback;
|
|
615
629
|
},
|
|
616
630
|
enumerable: false,
|
|
617
631
|
configurable: true
|
|
618
632
|
});
|
|
619
633
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigAuthToken", {
|
|
620
634
|
get: function () {
|
|
621
|
-
return this.
|
|
622
|
-
},
|
|
623
|
-
enumerable: false,
|
|
624
|
-
configurable: true
|
|
625
|
-
});
|
|
626
|
-
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigSecret", {
|
|
627
|
-
get: function () {
|
|
628
|
-
return this.configParams.px_remote_config_secret;
|
|
635
|
+
return this.activeConfigParams.px_remote_config_auth_token;
|
|
629
636
|
},
|
|
630
637
|
enumerable: false,
|
|
631
638
|
configurable: true
|
|
632
639
|
});
|
|
633
640
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigVersion", {
|
|
634
641
|
get: function () {
|
|
635
|
-
return this.
|
|
642
|
+
return this.activeConfigParams.px_remote_config_version;
|
|
636
643
|
},
|
|
637
644
|
enumerable: false,
|
|
638
645
|
configurable: true
|
|
639
646
|
});
|
|
640
647
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigId", {
|
|
641
648
|
get: function () {
|
|
642
|
-
return this.
|
|
649
|
+
return this.activeConfigParams.px_remote_config_id;
|
|
643
650
|
},
|
|
644
651
|
enumerable: false,
|
|
645
652
|
configurable: true
|
|
646
653
|
});
|
|
647
654
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigRetryIntervalMs", {
|
|
648
655
|
get: function () {
|
|
649
|
-
return this.
|
|
656
|
+
return this.activeConfigParams.px_remote_config_retry_interval_ms;
|
|
650
657
|
},
|
|
651
658
|
enumerable: false,
|
|
652
659
|
configurable: true
|
|
653
660
|
});
|
|
654
661
|
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigMaxFetchAttempts", {
|
|
655
662
|
get: function () {
|
|
656
|
-
return this.
|
|
663
|
+
return this.activeConfigParams.px_remote_config_max_fetch_attempts;
|
|
657
664
|
},
|
|
658
665
|
enumerable: false,
|
|
659
666
|
configurable: true
|
|
660
667
|
});
|
|
661
668
|
Object.defineProperty(ConfigurationBase.prototype, "urlDecodeReservedCharacters", {
|
|
662
669
|
get: function () {
|
|
663
|
-
return this.
|
|
670
|
+
return this.activeConfigParams.px_url_decode_reserved_characters;
|
|
664
671
|
},
|
|
665
672
|
enumerable: false,
|
|
666
673
|
configurable: true
|
|
667
674
|
});
|
|
668
675
|
Object.defineProperty(ConfigurationBase.prototype, "securedPxhdEnabled", {
|
|
669
676
|
get: function () {
|
|
670
|
-
return this.
|
|
677
|
+
return this.activeConfigParams.px_secured_pxhd_enabled;
|
|
671
678
|
},
|
|
672
679
|
enumerable: false,
|
|
673
680
|
configurable: true
|