perimeterx-js-core 0.9.0 → 0.11.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/README.md +1 -1
- package/lib/cjs/action/utils.js +6 -1
- package/lib/cjs/activities/utils.js +13 -8
- package/lib/cjs/blocker/BlockerBase.js +29 -0
- package/lib/cjs/blocker/JsonBlockerBase.js +36 -0
- package/lib/cjs/blocker/MobileBlocker.js +48 -0
- package/lib/cjs/blocker/index.js +5 -3
- package/lib/cjs/blocker/{BlockAction.js → model/BlockAction.js} +2 -0
- package/lib/cjs/blocker/model/index.js +19 -0
- package/lib/cjs/{products/bot_defender/block → blocker}/utils.js +7 -5
- package/lib/cjs/config/{StaticConfigurationBase.js → ConfigurationBase.js} +127 -85
- package/lib/cjs/config/ConfigurationBuilderBase.js +129 -0
- package/lib/cjs/config/{DefaultConfigurations.js → defaults/DefaultCommonConfigurationParams.js} +7 -9
- package/lib/cjs/config/defaults/DefaultConfigurationParams.js +18 -0
- package/lib/cjs/config/defaults/DefaultRemoteConfigurationParams.js +8 -0
- package/lib/cjs/config/defaults/DefaultStaticConfigurationParams.js +11 -0
- package/lib/cjs/config/defaults/index.js +20 -0
- package/lib/cjs/config/index.js +20 -5
- package/lib/cjs/config/params/InitializeConfigurationParams.js +2 -0
- package/lib/cjs/config/params/RemoteConfigurationParams.js +2 -0
- package/lib/cjs/config/params/StaticConfigurationParams.js +2 -0
- package/lib/cjs/config/params/index.js +21 -0
- package/lib/cjs/config/remote_config/DefaultRemoteConfigUpdater.js +188 -0
- package/lib/cjs/config/remote_config/IRemoteConfigUpdater.js +2 -0
- package/lib/cjs/config/remote_config/constants.js +6 -0
- package/lib/cjs/config/remote_config/index.js +22 -0
- package/lib/cjs/config/remote_config/model/RemoteConfigData.js +2 -0
- package/lib/cjs/config/remote_config/model/RemoteConfigUpdateRequestData.js +2 -0
- package/lib/cjs/config/remote_config/model/index.js +18 -0
- package/lib/cjs/config/remote_config/service_client/HttpRemoteConfigServiceClient.js +77 -0
- package/lib/cjs/config/remote_config/service_client/IRemoteConfigServiceClient.js +2 -0
- package/lib/cjs/config/remote_config/service_client/index.js +18 -0
- package/lib/cjs/config/remote_config/storage_client/IRemoteConfigStorageClient.js +2 -0
- package/lib/cjs/config/remote_config/storage_client/index.js +17 -0
- package/lib/cjs/context/DefaultContext.js +6 -0
- package/lib/cjs/custom_parameters/CustomParameters.js +1 -0
- package/lib/cjs/custom_parameters/CustomParametersUtils.js +5 -0
- package/lib/cjs/enforcer/EnforcerBase.js +19 -1
- package/lib/cjs/http/utils/constants.js +2 -1
- package/lib/cjs/logger/HttpLogServiceClient.js +6 -0
- package/lib/cjs/logger/LoggerBase.js +17 -6
- package/lib/cjs/phase/flow/EnforceFlow.js +4 -1
- package/lib/cjs/phase/flow/FilterFlow.js +9 -4
- package/lib/cjs/phase/impl/EnrichContextFromRequestPhase.js +2 -2
- package/lib/cjs/phase/impl/FirstPartyPhase.js +4 -1
- package/lib/cjs/phase/impl/RiskApiPhase.js +5 -8
- package/lib/cjs/phase/impl/SendLogsPhase.js +5 -9
- package/lib/cjs/phase/impl/UpdateRemoteConfigPhase.js +71 -0
- package/lib/cjs/phase/impl/index.js +1 -0
- package/lib/cjs/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +24 -16
- package/lib/cjs/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +25 -18
- package/lib/cjs/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +19 -31
- package/lib/cjs/products/bot_defender/block/index.js +1 -1
- package/lib/cjs/products/bot_defender/block/model/JsonCaptchaBlockPayload.js +2 -0
- package/lib/cjs/products/bot_defender/block/model/index.js +1 -2
- package/lib/cjs/products/hype_sale_challenge/HypeSaleChallenge.js +73 -0
- package/lib/cjs/products/hype_sale_challenge/IHypeSaleChallenge.js +2 -0
- package/lib/cjs/products/hype_sale_challenge/block/JsonHypeSaleChallengeBlocker.js +39 -0
- package/lib/cjs/products/hype_sale_challenge/block/MobileHypeSaleChallengeBlocker.js +28 -0
- package/lib/cjs/products/hype_sale_challenge/block/index.js +19 -0
- package/lib/cjs/products/hype_sale_challenge/block/templates/hype_sale_challenge_template.js +4 -0
- package/lib/cjs/products/hype_sale_challenge/block/templates/index.js +17 -0
- package/lib/cjs/products/hype_sale_challenge/index.js +21 -0
- package/lib/cjs/products/hype_sale_challenge/model/HypeSaleChallengeData.js +2 -0
- package/lib/cjs/products/hype_sale_challenge/model/JsonHypeSaleChallengeBlockPayload.js +2 -0
- package/lib/cjs/products/hype_sale_challenge/model/index.js +18 -0
- package/lib/cjs/products/hype_sale_challenge/utils.js +23 -0
- package/lib/cjs/products/index.js +1 -0
- package/lib/cjs/risk_api/risk_response/CommonRiskResponsePayload.js +2 -0
- package/lib/cjs/risk_api/risk_response/RiskResponseBase.js +8 -0
- package/lib/cjs/risk_api/risk_response/index.js +1 -0
- package/lib/cjs/risk_token/token/v2/DefaultTokenV2.js +11 -1
- package/lib/cjs/risk_token/token/v3/DefaultTokenV3.js +8 -0
- package/lib/cjs/telemetry/DefaultTelemetry.js +2 -31
- package/lib/cjs/telemetry/constants.js +1 -5
- package/lib/cjs/utils/WaitsUntil.js +58 -0
- package/lib/cjs/utils/constants.js +4 -3
- package/lib/cjs/utils/index.js +2 -0
- package/lib/cjs/utils/timestamp_hmac_header_validator/DefaultTimestampHmacHeaderValidator.js +45 -0
- package/lib/cjs/utils/timestamp_hmac_header_validator/ITimestampHmacHeaderValidator.js +2 -0
- package/lib/cjs/utils/timestamp_hmac_header_validator/index.js +18 -0
- package/lib/cjs/utils/utils.js +5 -1
- package/lib/esm/action/utils.js +4 -0
- package/lib/esm/activities/utils.js +12 -7
- package/lib/esm/blocker/BlockerBase.js +24 -0
- package/lib/esm/blocker/JsonBlockerBase.js +17 -0
- package/lib/esm/blocker/MobileBlocker.js +29 -0
- package/lib/esm/blocker/index.js +5 -3
- package/lib/esm/blocker/{BlockAction.js → model/BlockAction.js} +2 -0
- package/lib/esm/blocker/model/index.js +3 -0
- package/lib/esm/{products/bot_defender/block → blocker}/utils.js +4 -2
- package/lib/esm/config/{StaticConfigurationBase.js → ConfigurationBase.js} +24 -3
- package/lib/esm/config/ConfigurationBuilderBase.js +60 -0
- package/lib/esm/config/{DefaultConfigurations.js → defaults/DefaultCommonConfigurationParams.js} +6 -8
- package/lib/esm/config/defaults/DefaultConfigurationParams.js +8 -0
- package/lib/esm/config/defaults/DefaultRemoteConfigurationParams.js +5 -0
- package/lib/esm/config/defaults/DefaultStaticConfigurationParams.js +8 -0
- package/lib/esm/config/defaults/index.js +4 -0
- package/lib/esm/config/index.js +6 -2
- package/lib/esm/config/params/InitializeConfigurationParams.js +1 -0
- package/lib/esm/config/params/RemoteConfigurationParams.js +1 -0
- package/lib/esm/config/params/StaticConfigurationParams.js +1 -0
- package/lib/esm/config/params/index.js +5 -0
- package/lib/esm/config/remote_config/DefaultRemoteConfigUpdater.js +97 -0
- package/lib/esm/config/remote_config/IRemoteConfigUpdater.js +1 -0
- package/lib/esm/config/remote_config/constants.js +3 -0
- package/lib/esm/config/remote_config/index.js +6 -0
- package/lib/esm/config/remote_config/model/RemoteConfigData.js +1 -0
- package/lib/esm/config/remote_config/model/RemoteConfigUpdateRequestData.js +1 -0
- package/lib/esm/config/remote_config/model/index.js +2 -0
- package/lib/esm/config/remote_config/service_client/HttpRemoteConfigServiceClient.js +27 -0
- package/lib/esm/config/remote_config/service_client/IRemoteConfigServiceClient.js +1 -0
- package/lib/esm/config/remote_config/service_client/index.js +2 -0
- package/lib/esm/config/remote_config/storage_client/IRemoteConfigStorageClient.js +1 -0
- package/lib/esm/config/remote_config/storage_client/index.js +1 -0
- package/lib/esm/context/DefaultContext.js +6 -0
- package/lib/esm/custom_parameters/CustomParameters.js +1 -1
- package/lib/esm/custom_parameters/CustomParametersUtils.js +5 -0
- package/lib/esm/enforcer/EnforcerBase.js +19 -1
- package/lib/esm/http/utils/constants.js +1 -0
- package/lib/esm/logger/HttpLogServiceClient.js +8 -0
- package/lib/esm/logger/LoggerBase.js +11 -6
- package/lib/esm/phase/flow/EnforceFlow.js +4 -1
- package/lib/esm/phase/flow/FilterFlow.js +10 -5
- package/lib/esm/phase/impl/EnrichContextFromRequestPhase.js +1 -1
- package/lib/esm/phase/impl/FirstPartyPhase.js +5 -1
- package/lib/esm/phase/impl/RiskApiPhase.js +3 -5
- package/lib/esm/phase/impl/SendLogsPhase.js +1 -3
- package/lib/esm/phase/impl/UpdateRemoteConfigPhase.js +23 -0
- package/lib/esm/phase/impl/index.js +1 -0
- package/lib/esm/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +6 -14
- package/lib/esm/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +6 -17
- package/lib/esm/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +3 -32
- package/lib/esm/products/bot_defender/block/index.js +1 -1
- package/lib/esm/products/bot_defender/block/model/JsonCaptchaBlockPayload.js +1 -0
- package/lib/esm/products/bot_defender/block/model/index.js +1 -2
- package/lib/esm/products/hype_sale_challenge/HypeSaleChallenge.js +69 -0
- package/lib/esm/products/hype_sale_challenge/IHypeSaleChallenge.js +1 -0
- package/lib/esm/products/hype_sale_challenge/block/JsonHypeSaleChallengeBlocker.js +18 -0
- package/lib/esm/products/hype_sale_challenge/block/MobileHypeSaleChallengeBlocker.js +7 -0
- package/lib/esm/products/hype_sale_challenge/block/index.js +3 -0
- package/lib/esm/products/hype_sale_challenge/block/templates/hype_sale_challenge_template.js +42 -0
- package/lib/esm/products/hype_sale_challenge/block/templates/index.js +1 -0
- package/lib/esm/products/hype_sale_challenge/index.js +5 -0
- package/lib/esm/products/hype_sale_challenge/model/HypeSaleChallengeData.js +1 -0
- package/lib/esm/products/hype_sale_challenge/model/JsonHypeSaleChallengeBlockPayload.js +1 -0
- package/lib/esm/products/hype_sale_challenge/model/index.js +2 -0
- package/lib/esm/products/hype_sale_challenge/utils.js +11 -0
- package/lib/esm/products/index.js +1 -0
- package/lib/esm/risk_api/client/PostRiskApiClientBase.js +1 -1
- package/lib/esm/risk_api/risk_response/CommonRiskResponsePayload.js +1 -0
- package/lib/esm/risk_api/risk_response/RiskResponseBase.js +3 -0
- package/lib/esm/risk_api/risk_response/index.js +1 -0
- package/lib/esm/risk_token/token/v2/DefaultTokenV2.js +7 -1
- package/lib/esm/risk_token/token/v3/DefaultTokenV3.js +3 -0
- package/lib/esm/telemetry/DefaultTelemetry.js +5 -34
- package/lib/esm/telemetry/constants.js +0 -4
- package/lib/esm/utils/WaitsUntil.js +12 -0
- package/lib/esm/utils/constants.js +3 -2
- package/lib/esm/utils/index.js +2 -0
- package/lib/esm/utils/timestamp_hmac_header_validator/DefaultTimestampHmacHeaderValidator.js +44 -0
- package/lib/esm/utils/timestamp_hmac_header_validator/ITimestampHmacHeaderValidator.js +1 -0
- package/lib/esm/utils/timestamp_hmac_header_validator/index.js +2 -0
- package/lib/esm/utils/utils.js +3 -0
- package/lib/types/action/utils.d.ts +2 -0
- package/lib/types/activities/model/CommonActivityDetails.d.ts +2 -0
- package/lib/types/activities/utils.d.ts +371 -110
- package/lib/types/blocker/BlockerBase.d.ts +11 -0
- package/lib/types/blocker/JsonBlockerBase.d.ts +9 -0
- package/lib/types/blocker/MobileBlocker.d.ts +13 -0
- package/lib/types/blocker/index.d.ts +5 -3
- package/lib/types/blocker/model/BlockAction.d.ts +7 -0
- package/lib/types/{products/bot_defender/block → blocker}/model/BlockData.d.ts +2 -1
- package/lib/types/blocker/model/index.d.ts +3 -0
- package/lib/types/blocker/utils.d.ts +631 -0
- package/lib/types/config/{StaticConfigurationBase.d.ts → ConfigurationBase.d.ts} +8 -2
- package/lib/types/config/ConfigurationBuilderBase.d.ts +13 -0
- package/lib/types/config/IConfiguration.d.ts +25 -1
- package/lib/types/config/defaults/DefaultCommonConfigurationParams.d.ts +2 -0
- package/lib/types/config/defaults/DefaultConfigurationParams.d.ts +2 -0
- package/lib/types/config/defaults/DefaultRemoteConfigurationParams.d.ts +2 -0
- package/lib/types/config/defaults/DefaultStaticConfigurationParams.d.ts +2 -0
- package/lib/types/config/defaults/index.d.ts +4 -0
- package/lib/types/config/index.d.ts +6 -4
- package/lib/types/config/{ConfigurationParams.d.ts → params/CommonConfigurationParams.d.ts} +10 -12
- package/lib/types/config/params/ConfigurationParams.d.ts +4 -0
- package/lib/types/config/params/InitializeConfigurationParams.d.ts +3 -0
- package/lib/types/config/params/RemoteConfigurationParams.d.ts +5 -0
- package/lib/types/config/params/StaticConfigurationParams.d.ts +8 -0
- package/lib/types/config/params/index.d.ts +5 -0
- package/lib/types/config/remote_config/DefaultRemoteConfigUpdater.d.ts +35 -0
- package/lib/types/config/remote_config/IRemoteConfigUpdater.d.ts +6 -0
- package/lib/types/config/remote_config/constants.d.ts +3 -0
- package/lib/types/config/remote_config/index.d.ts +6 -0
- package/lib/types/config/remote_config/model/RemoteConfigData.d.ts +7 -0
- package/lib/types/config/remote_config/model/RemoteConfigUpdateRequestData.d.ts +3 -0
- package/lib/types/config/remote_config/model/index.d.ts +2 -0
- package/lib/types/config/remote_config/service_client/HttpRemoteConfigServiceClient.d.ts +12 -0
- package/lib/types/config/remote_config/service_client/IRemoteConfigServiceClient.d.ts +5 -0
- package/lib/types/config/remote_config/service_client/index.d.ts +2 -0
- package/lib/types/config/remote_config/storage_client/IRemoteConfigStorageClient.d.ts +6 -0
- package/lib/types/config/remote_config/storage_client/index.d.ts +1 -0
- package/lib/types/context/DefaultContext.d.ts +2 -0
- package/lib/types/context/interfaces/IContext.d.ts +4 -0
- package/lib/types/custom_parameters/CustomParameters.d.ts +2 -0
- package/lib/types/enforcer/options/EnforcerBaseOptions.d.ts +4 -0
- package/lib/types/http/utils/constants.d.ts +1 -0
- package/lib/types/logger/HttpLogServiceClient.d.ts +2 -0
- package/lib/types/logger/ILogger.d.ts +4 -2
- package/lib/types/logger/LoggerBase.d.ts +3 -3
- package/lib/types/logger/model/LogMetadata.d.ts +2 -0
- package/lib/types/logger/model/LogRecord.d.ts +1 -1
- package/lib/types/phase/flow/FilterFlow.d.ts +1 -1
- package/lib/types/phase/impl/FirstPartyPhase.d.ts +3 -1
- package/lib/types/phase/impl/RiskApiPhase.d.ts +1 -1
- package/lib/types/phase/impl/UpdateRemoteConfigPhase.d.ts +12 -0
- package/lib/types/phase/impl/index.d.ts +1 -0
- package/lib/types/products/bot_defender/block/captcha/HtmlCaptchaBlocker.d.ts +3 -4
- package/lib/types/products/bot_defender/block/captcha/JsonCaptchaBlocker.d.ts +4 -4
- package/lib/types/products/bot_defender/block/captcha/MobileCaptchaBlocker.d.ts +2 -8
- package/lib/types/products/bot_defender/block/index.d.ts +1 -1
- package/lib/types/products/bot_defender/block/model/{JsonBlockPayload.d.ts → JsonCaptchaBlockPayload.d.ts} +1 -1
- package/lib/types/products/bot_defender/block/model/index.d.ts +1 -2
- package/lib/types/products/hype_sale_challenge/HypeSaleChallenge.d.ts +26 -0
- package/lib/types/products/hype_sale_challenge/IHypeSaleChallenge.d.ts +5 -0
- package/lib/types/products/hype_sale_challenge/block/JsonHypeSaleChallengeBlocker.d.ts +9 -0
- package/lib/types/products/hype_sale_challenge/block/MobileHypeSaleChallengeBlocker.d.ts +6 -0
- package/lib/types/products/hype_sale_challenge/block/index.d.ts +3 -0
- package/lib/types/products/hype_sale_challenge/block/templates/hype_sale_challenge_template.d.ts +1 -0
- package/lib/types/products/hype_sale_challenge/block/templates/index.d.ts +1 -0
- package/lib/types/products/hype_sale_challenge/index.d.ts +5 -0
- package/lib/types/products/hype_sale_challenge/model/HypeSaleChallengeData.d.ts +5 -0
- package/lib/types/products/hype_sale_challenge/model/JsonHypeSaleChallengeBlockPayload.d.ts +5 -0
- package/lib/types/products/hype_sale_challenge/model/index.d.ts +2 -0
- package/lib/types/products/hype_sale_challenge/utils.d.ts +5 -0
- package/lib/types/products/index.d.ts +1 -0
- package/lib/types/products/interfaces/ProductDataType.d.ts +2 -1
- package/lib/types/risk_api/risk_response/CommonRiskResponsePayload.d.ts +14 -0
- package/lib/types/risk_api/risk_response/IRiskResponse.d.ts +1 -0
- package/lib/types/risk_api/risk_response/RiskResponseBase.d.ts +1 -0
- package/lib/types/risk_api/risk_response/index.d.ts +1 -0
- package/lib/types/risk_api/risk_response/v2/RiskResponseV2Payload.d.ts +2 -12
- package/lib/types/risk_api/risk_response/v3/RiskResponseV3Payload.d.ts +2 -12
- package/lib/types/risk_token/token/IToken.d.ts +4 -0
- package/lib/types/risk_token/token/TokenBase.d.ts +1 -0
- package/lib/types/risk_token/token/v2/DefaultTokenV2.d.ts +1 -0
- package/lib/types/risk_token/token/v3/DefaultTokenV3.d.ts +1 -0
- package/lib/types/risk_token/token/v3/TokenV3Payload.d.ts +1 -0
- package/lib/types/telemetry/DefaultTelemetry.d.ts +11 -12
- package/lib/types/telemetry/constants.d.ts +0 -4
- package/lib/types/utils/WaitsUntil.d.ts +9 -0
- package/lib/types/utils/constants.d.ts +3 -2
- package/lib/types/utils/index.d.ts +2 -0
- package/lib/types/utils/timestamp_hmac_header_validator/DefaultTimestampHmacHeaderValidator.d.ts +13 -0
- package/lib/types/utils/timestamp_hmac_header_validator/ITimestampHmacHeaderValidator.d.ts +3 -0
- package/lib/types/utils/timestamp_hmac_header_validator/index.d.ts +2 -0
- package/lib/types/utils/utils.d.ts +1 -0
- package/package.json +5 -3
- package/lib/cjs/blocker/BlockActionToProductMap.js +0 -10
- package/lib/esm/blocker/BlockActionToProductMap.js +0 -7
- package/lib/types/blocker/BlockAction.d.ts +0 -5
- package/lib/types/blocker/BlockActionToProductMap.d.ts +0 -3
- package/lib/types/config/DefaultConfigurations.d.ts +0 -2
- package/lib/types/products/bot_defender/block/utils.d.ts +0 -5
- /package/lib/cjs/blocker/{BlockActionToWordMap.js → model/BlockActionToWordMap.js} +0 -0
- /package/lib/cjs/{products/bot_defender/block → blocker}/model/BlockData.js +0 -0
- /package/lib/cjs/config/{ConfigurationParams.js → params/CommonConfigurationParams.js} +0 -0
- /package/lib/cjs/{products/bot_defender/block/model/JsonBlockPayload.js → config/params/ConfigurationParams.js} +0 -0
- /package/lib/esm/blocker/{BlockActionToWordMap.js → model/BlockActionToWordMap.js} +0 -0
- /package/lib/esm/{products/bot_defender/block → blocker}/model/BlockData.js +0 -0
- /package/lib/esm/config/{ConfigurationParams.js → params/CommonConfigurationParams.js} +0 -0
- /package/lib/esm/{products/bot_defender/block/model/JsonBlockPayload.js → config/params/ConfigurationParams.js} +0 -0
- /package/lib/types/blocker/{BlockActionToWordMap.d.ts → model/BlockActionToWordMap.d.ts} +0 -0
|
@@ -11,16 +11,16 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
var
|
|
14
|
+
exports.ConfigurationBase = void 0;
|
|
15
|
+
var defaults_1 = require("./defaults");
|
|
16
16
|
var logger_1 = require("../logger");
|
|
17
17
|
var utils_1 = require("../utils");
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
this.configParams = this.initialize(params, __assign(__assign({},
|
|
18
|
+
var ConfigurationBase = /** @class */ (function () {
|
|
19
|
+
function ConfigurationBase(params, defaultParams) {
|
|
20
|
+
this.configParams = this.initialize(params, __assign(__assign({}, defaults_1.DEFAULT_CONFIGURATION_PARAMS), defaultParams));
|
|
21
21
|
this.internalLogger = new logger_1.DefaultLogger(this.configParams.px_logger_severity);
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
ConfigurationBase.prototype.initialize = function (params, defaultParams) {
|
|
24
24
|
var _this = this;
|
|
25
25
|
this.throwIfMissingRequiredField(params);
|
|
26
26
|
var config = {};
|
|
@@ -29,7 +29,7 @@ var StaticConfigurationBase = /** @class */ (function () {
|
|
|
29
29
|
});
|
|
30
30
|
return config;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
ConfigurationBase.prototype.throwIfMissingRequiredField = function (params) {
|
|
33
33
|
var REQUIRED_FIELDS = ['px_app_id', 'px_cookie_secret', 'px_auth_token'];
|
|
34
34
|
REQUIRED_FIELDS.forEach(function (key) {
|
|
35
35
|
if (!params[key]) {
|
|
@@ -37,7 +37,7 @@ var StaticConfigurationBase = /** @class */ (function () {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
ConfigurationBase.prototype.getValidConfigValue = function (params, defaultParams, key) {
|
|
41
41
|
if (params[key] != null && this.isValidConfigValue(params, defaultParams, key)) {
|
|
42
42
|
return params[key];
|
|
43
43
|
}
|
|
@@ -45,7 +45,7 @@ var StaticConfigurationBase = /** @class */ (function () {
|
|
|
45
45
|
return this.getDefaultConfigurationValue(params, defaultParams, key);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
ConfigurationBase.prototype.isValidConfigValue = function (params, defaultParams, key) {
|
|
49
49
|
switch (key) {
|
|
50
50
|
case 'px_logger_severity':
|
|
51
51
|
return (0, utils_1.isValidEnumValue)(logger_1.LoggerSeverity, params[key]);
|
|
@@ -61,7 +61,7 @@ var StaticConfigurationBase = /** @class */ (function () {
|
|
|
61
61
|
return typeof params[key] === typeof defaultParams[key];
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
ConfigurationBase.prototype.getDefaultConfigurationValue = function (params, defaultParams, key) {
|
|
65
65
|
switch (key) {
|
|
66
66
|
case 'px_backend_url':
|
|
67
67
|
return "https://".concat((0, utils_1.getScoreApiDomain)(params.px_app_id));
|
|
@@ -71,513 +71,555 @@ var StaticConfigurationBase = /** @class */ (function () {
|
|
|
71
71
|
return defaultParams[key];
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
ConfigurationBase.prototype.toParams = function () {
|
|
75
75
|
return Object.assign({}, this.configParams);
|
|
76
76
|
};
|
|
77
|
-
Object.defineProperty(
|
|
77
|
+
Object.defineProperty(ConfigurationBase.prototype, "moduleVersion", {
|
|
78
78
|
get: function () {
|
|
79
79
|
return "".concat(this.getModuleVersion(), " (").concat(utils_1.CORE_MODULE_VERSION, ")");
|
|
80
80
|
},
|
|
81
81
|
enumerable: false,
|
|
82
82
|
configurable: true
|
|
83
83
|
});
|
|
84
|
-
Object.defineProperty(
|
|
84
|
+
Object.defineProperty(ConfigurationBase.prototype, "logger", {
|
|
85
85
|
get: function () {
|
|
86
86
|
return this.internalLogger;
|
|
87
87
|
},
|
|
88
88
|
enumerable: false,
|
|
89
89
|
configurable: true
|
|
90
90
|
});
|
|
91
|
-
Object.defineProperty(
|
|
91
|
+
Object.defineProperty(ConfigurationBase.prototype, "appId", {
|
|
92
92
|
get: function () {
|
|
93
93
|
return this.configParams.px_app_id;
|
|
94
94
|
},
|
|
95
95
|
enumerable: false,
|
|
96
96
|
configurable: true
|
|
97
97
|
});
|
|
98
|
-
Object.defineProperty(
|
|
98
|
+
Object.defineProperty(ConfigurationBase.prototype, "authToken", {
|
|
99
99
|
get: function () {
|
|
100
100
|
return this.configParams.px_auth_token;
|
|
101
101
|
},
|
|
102
102
|
enumerable: false,
|
|
103
103
|
configurable: true
|
|
104
104
|
});
|
|
105
|
-
Object.defineProperty(
|
|
105
|
+
Object.defineProperty(ConfigurationBase.prototype, "blockingScore", {
|
|
106
106
|
get: function () {
|
|
107
107
|
return this.configParams.px_blocking_score;
|
|
108
108
|
},
|
|
109
109
|
enumerable: false,
|
|
110
110
|
configurable: true
|
|
111
111
|
});
|
|
112
|
-
Object.defineProperty(
|
|
112
|
+
Object.defineProperty(ConfigurationBase.prototype, "bypassMonitorHeader", {
|
|
113
113
|
get: function () {
|
|
114
114
|
return this.configParams.px_bypass_monitor_header;
|
|
115
115
|
},
|
|
116
116
|
enumerable: false,
|
|
117
117
|
configurable: true
|
|
118
118
|
});
|
|
119
|
-
Object.defineProperty(
|
|
119
|
+
Object.defineProperty(ConfigurationBase.prototype, "cookieSecret", {
|
|
120
120
|
get: function () {
|
|
121
121
|
return this.configParams.px_cookie_secret;
|
|
122
122
|
},
|
|
123
123
|
enumerable: false,
|
|
124
124
|
configurable: true
|
|
125
125
|
});
|
|
126
|
-
Object.defineProperty(
|
|
126
|
+
Object.defineProperty(ConfigurationBase.prototype, "customCookieHeader", {
|
|
127
127
|
get: function () {
|
|
128
128
|
return this.configParams.px_custom_cookie_header;
|
|
129
129
|
},
|
|
130
130
|
enumerable: false,
|
|
131
131
|
configurable: true
|
|
132
132
|
});
|
|
133
|
-
Object.defineProperty(
|
|
133
|
+
Object.defineProperty(ConfigurationBase.prototype, "customLogo", {
|
|
134
134
|
get: function () {
|
|
135
135
|
return this.configParams.px_custom_logo;
|
|
136
136
|
},
|
|
137
137
|
enumerable: false,
|
|
138
138
|
configurable: true
|
|
139
139
|
});
|
|
140
|
-
Object.defineProperty(
|
|
140
|
+
Object.defineProperty(ConfigurationBase.prototype, "enforcedRoutes", {
|
|
141
141
|
get: function () {
|
|
142
142
|
return this.configParams.px_enforced_routes;
|
|
143
143
|
},
|
|
144
144
|
enumerable: false,
|
|
145
145
|
configurable: true
|
|
146
146
|
});
|
|
147
|
-
Object.defineProperty(
|
|
147
|
+
Object.defineProperty(ConfigurationBase.prototype, "filteredExtensions", {
|
|
148
148
|
get: function () {
|
|
149
149
|
return this.configParams.px_filter_by_extension.map(function (ext) { return (ext.startsWith('.') ? ext : ".".concat(ext)); });
|
|
150
150
|
},
|
|
151
151
|
enumerable: false,
|
|
152
152
|
configurable: true
|
|
153
153
|
});
|
|
154
|
-
Object.defineProperty(
|
|
154
|
+
Object.defineProperty(ConfigurationBase.prototype, "filteredHttpMethods", {
|
|
155
155
|
get: function () {
|
|
156
156
|
return this.configParams.px_filter_by_http_method;
|
|
157
157
|
},
|
|
158
158
|
enumerable: false,
|
|
159
159
|
configurable: true
|
|
160
160
|
});
|
|
161
|
-
Object.defineProperty(
|
|
161
|
+
Object.defineProperty(ConfigurationBase.prototype, "filteredIps", {
|
|
162
162
|
get: function () {
|
|
163
163
|
return this.configParams.px_filter_by_ip;
|
|
164
164
|
},
|
|
165
165
|
enumerable: false,
|
|
166
166
|
configurable: true
|
|
167
167
|
});
|
|
168
|
-
Object.defineProperty(
|
|
168
|
+
Object.defineProperty(ConfigurationBase.prototype, "filteredRoutes", {
|
|
169
169
|
get: function () {
|
|
170
170
|
return this.configParams.px_filter_by_route;
|
|
171
171
|
},
|
|
172
172
|
enumerable: false,
|
|
173
173
|
configurable: true
|
|
174
174
|
});
|
|
175
|
-
Object.defineProperty(
|
|
175
|
+
Object.defineProperty(ConfigurationBase.prototype, "filteredUserAgents", {
|
|
176
176
|
get: function () {
|
|
177
177
|
return this.configParams.px_filter_by_user_agent;
|
|
178
178
|
},
|
|
179
179
|
enumerable: false,
|
|
180
180
|
configurable: true
|
|
181
181
|
});
|
|
182
|
-
Object.defineProperty(
|
|
182
|
+
Object.defineProperty(ConfigurationBase.prototype, "firstPartyEnabled", {
|
|
183
183
|
get: function () {
|
|
184
184
|
return this.configParams.px_first_party_enabled;
|
|
185
185
|
},
|
|
186
186
|
enumerable: false,
|
|
187
187
|
configurable: true
|
|
188
188
|
});
|
|
189
|
-
Object.defineProperty(
|
|
189
|
+
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyPrefix", {
|
|
190
190
|
get: function () {
|
|
191
191
|
return this.configParams.px_custom_first_party_prefix;
|
|
192
192
|
},
|
|
193
193
|
enumerable: false,
|
|
194
194
|
configurable: true
|
|
195
195
|
});
|
|
196
|
-
Object.defineProperty(
|
|
196
|
+
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartySensorEndpoint", {
|
|
197
197
|
get: function () {
|
|
198
198
|
return this.configParams.px_custom_first_party_sensor_endpoint;
|
|
199
199
|
},
|
|
200
200
|
enumerable: false,
|
|
201
201
|
configurable: true
|
|
202
202
|
});
|
|
203
|
-
Object.defineProperty(
|
|
203
|
+
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyXhrEndpoint", {
|
|
204
204
|
get: function () {
|
|
205
205
|
return this.configParams.px_custom_first_party_xhr_endpoint;
|
|
206
206
|
},
|
|
207
207
|
enumerable: false,
|
|
208
208
|
configurable: true
|
|
209
209
|
});
|
|
210
|
-
Object.defineProperty(
|
|
210
|
+
Object.defineProperty(ConfigurationBase.prototype, "customFirstPartyCaptchaEndpoint", {
|
|
211
211
|
get: function () {
|
|
212
212
|
return this.configParams.px_custom_first_party_captcha_endpoint;
|
|
213
213
|
},
|
|
214
214
|
enumerable: false,
|
|
215
215
|
configurable: true
|
|
216
216
|
});
|
|
217
|
-
Object.defineProperty(
|
|
217
|
+
Object.defineProperty(ConfigurationBase.prototype, "loggerSeverity", {
|
|
218
218
|
get: function () {
|
|
219
219
|
return this.logger.getLoggerSeverity();
|
|
220
220
|
},
|
|
221
221
|
enumerable: false,
|
|
222
222
|
configurable: true
|
|
223
223
|
});
|
|
224
|
-
Object.defineProperty(
|
|
224
|
+
Object.defineProperty(ConfigurationBase.prototype, "moduleEnabled", {
|
|
225
225
|
get: function () {
|
|
226
226
|
return this.configParams.px_module_enabled;
|
|
227
227
|
},
|
|
228
228
|
enumerable: false,
|
|
229
229
|
configurable: true
|
|
230
230
|
});
|
|
231
|
-
Object.defineProperty(
|
|
231
|
+
Object.defineProperty(ConfigurationBase.prototype, "moduleMode", {
|
|
232
232
|
get: function () {
|
|
233
233
|
return this.configParams.px_module_mode;
|
|
234
234
|
},
|
|
235
235
|
enumerable: false,
|
|
236
236
|
configurable: true
|
|
237
237
|
});
|
|
238
|
-
Object.defineProperty(
|
|
238
|
+
Object.defineProperty(ConfigurationBase.prototype, "monitoredRoutes", {
|
|
239
239
|
get: function () {
|
|
240
240
|
return this.configParams.px_monitored_routes;
|
|
241
241
|
},
|
|
242
242
|
enumerable: false,
|
|
243
243
|
configurable: true
|
|
244
244
|
});
|
|
245
|
-
Object.defineProperty(
|
|
245
|
+
Object.defineProperty(ConfigurationBase.prototype, "s2sTimeout", {
|
|
246
246
|
get: function () {
|
|
247
247
|
return this.configParams.px_s2s_timeout;
|
|
248
248
|
},
|
|
249
249
|
enumerable: false,
|
|
250
250
|
configurable: true
|
|
251
251
|
});
|
|
252
|
-
Object.defineProperty(
|
|
252
|
+
Object.defineProperty(ConfigurationBase.prototype, "sensitiveHeaders", {
|
|
253
253
|
get: function () {
|
|
254
254
|
return this.configParams.px_sensitive_headers;
|
|
255
255
|
},
|
|
256
256
|
enumerable: false,
|
|
257
257
|
configurable: true
|
|
258
258
|
});
|
|
259
|
-
Object.defineProperty(
|
|
259
|
+
Object.defineProperty(ConfigurationBase.prototype, "sensitiveRoutes", {
|
|
260
260
|
get: function () {
|
|
261
261
|
return this.configParams.px_sensitive_routes;
|
|
262
262
|
},
|
|
263
263
|
enumerable: false,
|
|
264
264
|
configurable: true
|
|
265
265
|
});
|
|
266
|
-
Object.defineProperty(
|
|
266
|
+
Object.defineProperty(ConfigurationBase.prototype, "advancedBlockingResponseEnabled", {
|
|
267
267
|
get: function () {
|
|
268
268
|
return this.configParams.px_advanced_blocking_response_enabled;
|
|
269
269
|
},
|
|
270
270
|
enumerable: false,
|
|
271
271
|
configurable: true
|
|
272
272
|
});
|
|
273
|
-
Object.defineProperty(
|
|
273
|
+
Object.defineProperty(ConfigurationBase.prototype, "backendScoreApiUrl", {
|
|
274
274
|
get: function () {
|
|
275
275
|
return this.configParams.px_backend_url;
|
|
276
276
|
},
|
|
277
277
|
enumerable: false,
|
|
278
278
|
configurable: true
|
|
279
279
|
});
|
|
280
|
-
Object.defineProperty(
|
|
280
|
+
Object.defineProperty(ConfigurationBase.prototype, "ipHeaders", {
|
|
281
281
|
get: function () {
|
|
282
282
|
return this.configParams.px_ip_headers;
|
|
283
283
|
},
|
|
284
284
|
enumerable: false,
|
|
285
285
|
configurable: true
|
|
286
286
|
});
|
|
287
|
-
Object.defineProperty(
|
|
287
|
+
Object.defineProperty(ConfigurationBase.prototype, "backendCaptchaUrl", {
|
|
288
288
|
get: function () {
|
|
289
289
|
return this.configParams.px_backend_captcha_url;
|
|
290
290
|
},
|
|
291
291
|
enumerable: false,
|
|
292
292
|
configurable: true
|
|
293
293
|
});
|
|
294
|
-
Object.defineProperty(
|
|
294
|
+
Object.defineProperty(ConfigurationBase.prototype, "backendClientUrl", {
|
|
295
295
|
get: function () {
|
|
296
296
|
return this.configParams.px_backend_client_url;
|
|
297
297
|
},
|
|
298
298
|
enumerable: false,
|
|
299
299
|
configurable: true
|
|
300
300
|
});
|
|
301
|
-
Object.defineProperty(
|
|
301
|
+
Object.defineProperty(ConfigurationBase.prototype, "backendCollectorUrl", {
|
|
302
302
|
get: function () {
|
|
303
303
|
return this.configParams.px_backend_collector_url;
|
|
304
304
|
},
|
|
305
305
|
enumerable: false,
|
|
306
306
|
configurable: true
|
|
307
307
|
});
|
|
308
|
-
Object.defineProperty(
|
|
308
|
+
Object.defineProperty(ConfigurationBase.prototype, "cssRef", {
|
|
309
309
|
get: function () {
|
|
310
310
|
return this.configParams.px_css_ref;
|
|
311
311
|
},
|
|
312
312
|
enumerable: false,
|
|
313
313
|
configurable: true
|
|
314
314
|
});
|
|
315
|
-
Object.defineProperty(
|
|
315
|
+
Object.defineProperty(ConfigurationBase.prototype, "jsRef", {
|
|
316
316
|
get: function () {
|
|
317
317
|
return this.configParams.px_js_ref;
|
|
318
318
|
},
|
|
319
319
|
enumerable: false,
|
|
320
320
|
configurable: true
|
|
321
321
|
});
|
|
322
|
-
Object.defineProperty(
|
|
322
|
+
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMaxIterations", {
|
|
323
323
|
get: function () {
|
|
324
324
|
return this.configParams.px_risk_cookie_max_iterations;
|
|
325
325
|
},
|
|
326
326
|
enumerable: false,
|
|
327
327
|
configurable: true
|
|
328
328
|
});
|
|
329
|
-
Object.defineProperty(
|
|
329
|
+
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMinIterations", {
|
|
330
330
|
get: function () {
|
|
331
331
|
return this.configParams.px_risk_cookie_min_iterations;
|
|
332
332
|
},
|
|
333
333
|
enumerable: false,
|
|
334
334
|
configurable: true
|
|
335
335
|
});
|
|
336
|
-
Object.defineProperty(
|
|
336
|
+
Object.defineProperty(ConfigurationBase.prototype, "riskCookieMaxLength", {
|
|
337
337
|
get: function () {
|
|
338
338
|
return this.configParams.px_risk_cookie_max_length;
|
|
339
339
|
},
|
|
340
340
|
enumerable: false,
|
|
341
341
|
configurable: true
|
|
342
342
|
});
|
|
343
|
-
Object.defineProperty(
|
|
343
|
+
Object.defineProperty(ConfigurationBase.prototype, "userAgentMaxLength", {
|
|
344
344
|
get: function () {
|
|
345
345
|
return this.configParams.px_user_agent_max_length;
|
|
346
346
|
},
|
|
347
347
|
enumerable: false,
|
|
348
348
|
configurable: true
|
|
349
349
|
});
|
|
350
|
-
Object.defineProperty(
|
|
350
|
+
Object.defineProperty(ConfigurationBase.prototype, "maxActivityBatchSize", {
|
|
351
351
|
get: function () {
|
|
352
352
|
return this.configParams.px_max_activity_batch_size;
|
|
353
353
|
},
|
|
354
354
|
enumerable: false,
|
|
355
355
|
configurable: true
|
|
356
356
|
});
|
|
357
|
-
Object.defineProperty(
|
|
357
|
+
Object.defineProperty(ConfigurationBase.prototype, "activityBatchTimeoutMs", {
|
|
358
358
|
get: function () {
|
|
359
359
|
return this.configParams.px_batch_activities_timeout_ms;
|
|
360
360
|
},
|
|
361
361
|
enumerable: false,
|
|
362
362
|
configurable: true
|
|
363
363
|
});
|
|
364
|
-
Object.defineProperty(
|
|
364
|
+
Object.defineProperty(ConfigurationBase.prototype, "graphqlEnabled", {
|
|
365
365
|
get: function () {
|
|
366
366
|
return this.configParams.px_graphql_enabled;
|
|
367
367
|
},
|
|
368
368
|
enumerable: false,
|
|
369
369
|
configurable: true
|
|
370
370
|
});
|
|
371
|
-
Object.defineProperty(
|
|
371
|
+
Object.defineProperty(ConfigurationBase.prototype, "graphqlRoutes", {
|
|
372
372
|
get: function () {
|
|
373
373
|
return this.configParams.px_graphql_routes;
|
|
374
374
|
},
|
|
375
375
|
enumerable: false,
|
|
376
376
|
configurable: true
|
|
377
377
|
});
|
|
378
|
-
Object.defineProperty(
|
|
378
|
+
Object.defineProperty(ConfigurationBase.prototype, "sensitiveGraphqlOperationNames", {
|
|
379
379
|
get: function () {
|
|
380
380
|
return this.configParams.px_sensitive_graphql_operation_names;
|
|
381
381
|
},
|
|
382
382
|
enumerable: false,
|
|
383
383
|
configurable: true
|
|
384
384
|
});
|
|
385
|
-
Object.defineProperty(
|
|
385
|
+
Object.defineProperty(ConfigurationBase.prototype, "sensitiveGraphqlOperationTypes", {
|
|
386
386
|
get: function () {
|
|
387
387
|
return this.configParams.px_sensitive_graphql_operation_types;
|
|
388
388
|
},
|
|
389
389
|
enumerable: false,
|
|
390
390
|
configurable: true
|
|
391
391
|
});
|
|
392
|
-
Object.defineProperty(
|
|
392
|
+
Object.defineProperty(ConfigurationBase.prototype, "enrichCustomParameters", {
|
|
393
393
|
get: function () {
|
|
394
394
|
return this.configParams.px_enrich_custom_parameters || null;
|
|
395
395
|
},
|
|
396
396
|
enumerable: false,
|
|
397
397
|
configurable: true
|
|
398
398
|
});
|
|
399
|
-
Object.defineProperty(
|
|
399
|
+
Object.defineProperty(ConfigurationBase.prototype, "additionalActivityHandler", {
|
|
400
400
|
get: function () {
|
|
401
401
|
return this.configParams.px_additional_activity_handler || null;
|
|
402
402
|
},
|
|
403
403
|
enumerable: false,
|
|
404
404
|
configurable: true
|
|
405
405
|
});
|
|
406
|
-
Object.defineProperty(
|
|
406
|
+
Object.defineProperty(ConfigurationBase.prototype, "altBackendCaptchaUrl", {
|
|
407
407
|
get: function () {
|
|
408
408
|
return 'https://captcha.px-cloud.net';
|
|
409
409
|
},
|
|
410
410
|
enumerable: false,
|
|
411
411
|
configurable: true
|
|
412
412
|
});
|
|
413
|
-
Object.defineProperty(
|
|
413
|
+
Object.defineProperty(ConfigurationBase.prototype, "corsSupportEnabled", {
|
|
414
414
|
get: function () {
|
|
415
415
|
return this.configParams.px_cors_support_enabled;
|
|
416
416
|
},
|
|
417
417
|
enumerable: false,
|
|
418
418
|
configurable: true
|
|
419
419
|
});
|
|
420
|
-
Object.defineProperty(
|
|
420
|
+
Object.defineProperty(ConfigurationBase.prototype, "corsCustomPreflightHandler", {
|
|
421
421
|
get: function () {
|
|
422
422
|
return this.configParams.px_cors_custom_preflight_handler || null;
|
|
423
423
|
},
|
|
424
424
|
enumerable: false,
|
|
425
425
|
configurable: true
|
|
426
426
|
});
|
|
427
|
-
Object.defineProperty(
|
|
427
|
+
Object.defineProperty(ConfigurationBase.prototype, "corsPreflightRequestFilterEnabled", {
|
|
428
428
|
get: function () {
|
|
429
429
|
return this.configParams.px_cors_preflight_request_filter_enabled;
|
|
430
430
|
},
|
|
431
431
|
enumerable: false,
|
|
432
432
|
configurable: true
|
|
433
433
|
});
|
|
434
|
-
Object.defineProperty(
|
|
434
|
+
Object.defineProperty(ConfigurationBase.prototype, "corsCreateCustomBlockResponseHeaders", {
|
|
435
435
|
get: function () {
|
|
436
436
|
return this.configParams.px_cors_create_custom_block_response_headers || null;
|
|
437
437
|
},
|
|
438
438
|
enumerable: false,
|
|
439
439
|
configurable: true
|
|
440
440
|
});
|
|
441
|
-
Object.defineProperty(
|
|
441
|
+
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieAdditionalFieldNames", {
|
|
442
442
|
get: function () {
|
|
443
443
|
return this.configParams.px_jwt_cookie_additional_field_names;
|
|
444
444
|
},
|
|
445
445
|
enumerable: false,
|
|
446
446
|
configurable: true
|
|
447
447
|
});
|
|
448
|
-
Object.defineProperty(
|
|
448
|
+
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieName", {
|
|
449
449
|
get: function () {
|
|
450
450
|
return this.configParams.px_jwt_cookie_name;
|
|
451
451
|
},
|
|
452
452
|
enumerable: false,
|
|
453
453
|
configurable: true
|
|
454
454
|
});
|
|
455
|
-
Object.defineProperty(
|
|
455
|
+
Object.defineProperty(ConfigurationBase.prototype, "jwtCookieUserIdFieldName", {
|
|
456
456
|
get: function () {
|
|
457
457
|
return this.configParams.px_jwt_cookie_user_id_field_name;
|
|
458
458
|
},
|
|
459
459
|
enumerable: false,
|
|
460
460
|
configurable: true
|
|
461
461
|
});
|
|
462
|
-
Object.defineProperty(
|
|
462
|
+
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderAdditionalFieldNames", {
|
|
463
463
|
get: function () {
|
|
464
464
|
return this.configParams.px_jwt_header_additional_field_names;
|
|
465
465
|
},
|
|
466
466
|
enumerable: false,
|
|
467
467
|
configurable: true
|
|
468
468
|
});
|
|
469
|
-
Object.defineProperty(
|
|
469
|
+
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderName", {
|
|
470
470
|
get: function () {
|
|
471
471
|
return this.configParams.px_jwt_header_name;
|
|
472
472
|
},
|
|
473
473
|
enumerable: false,
|
|
474
474
|
configurable: true
|
|
475
475
|
});
|
|
476
|
-
Object.defineProperty(
|
|
476
|
+
Object.defineProperty(ConfigurationBase.prototype, "jwtHeaderUserIdFieldName", {
|
|
477
477
|
get: function () {
|
|
478
478
|
return this.configParams.px_jwt_header_user_id_field_name;
|
|
479
479
|
},
|
|
480
480
|
enumerable: false,
|
|
481
481
|
configurable: true
|
|
482
482
|
});
|
|
483
|
-
Object.defineProperty(
|
|
483
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciEnabled", {
|
|
484
484
|
get: function () {
|
|
485
485
|
return this.configParams.px_login_credentials_extraction_enabled;
|
|
486
486
|
},
|
|
487
487
|
enumerable: false,
|
|
488
488
|
configurable: true
|
|
489
489
|
});
|
|
490
|
-
Object.defineProperty(
|
|
490
|
+
Object.defineProperty(ConfigurationBase.prototype, "loggerAuthToken", {
|
|
491
491
|
get: function () {
|
|
492
492
|
return this.configParams.px_logger_auth_token;
|
|
493
493
|
},
|
|
494
494
|
enumerable: false,
|
|
495
495
|
configurable: true
|
|
496
496
|
});
|
|
497
|
-
Object.defineProperty(
|
|
497
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciEndpoints", {
|
|
498
498
|
get: function () {
|
|
499
499
|
return this.configParams.px_login_credentials_extraction;
|
|
500
500
|
},
|
|
501
501
|
enumerable: false,
|
|
502
502
|
configurable: true
|
|
503
503
|
});
|
|
504
|
-
Object.defineProperty(
|
|
504
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciCompromisedCredentialsHeaderName", {
|
|
505
505
|
get: function () {
|
|
506
506
|
return this.configParams.px_compromised_credentials_header;
|
|
507
507
|
},
|
|
508
508
|
enumerable: false,
|
|
509
509
|
configurable: true
|
|
510
510
|
});
|
|
511
|
-
Object.defineProperty(
|
|
511
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciSendRawUsernameOnAdditionalS2SActivity", {
|
|
512
512
|
get: function () {
|
|
513
513
|
return this.configParams.px_send_raw_username_on_additional_s2s_activity;
|
|
514
514
|
},
|
|
515
515
|
enumerable: false,
|
|
516
516
|
configurable: true
|
|
517
517
|
});
|
|
518
|
-
Object.defineProperty(
|
|
518
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciAutomaticAdditionalS2SEnabled", {
|
|
519
519
|
get: function () {
|
|
520
520
|
return this.configParams.px_automatic_additional_s2s_activity_enabled;
|
|
521
521
|
},
|
|
522
522
|
enumerable: false,
|
|
523
523
|
configurable: true
|
|
524
524
|
});
|
|
525
|
-
Object.defineProperty(
|
|
525
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciAdditionalS2SHeaderEnabled", {
|
|
526
526
|
get: function () {
|
|
527
527
|
return this.configParams.px_additional_s2s_activity_header_enabled;
|
|
528
528
|
},
|
|
529
529
|
enumerable: false,
|
|
530
530
|
configurable: true
|
|
531
531
|
});
|
|
532
|
-
Object.defineProperty(
|
|
532
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultVersion", {
|
|
533
533
|
get: function () {
|
|
534
534
|
return this.configParams.px_credentials_intelligence_version;
|
|
535
535
|
},
|
|
536
536
|
enumerable: false,
|
|
537
537
|
configurable: true
|
|
538
538
|
});
|
|
539
|
-
Object.defineProperty(
|
|
539
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulReportingMethod", {
|
|
540
540
|
get: function () {
|
|
541
541
|
return this.configParams.px_login_successful_reporting_method;
|
|
542
542
|
},
|
|
543
543
|
enumerable: false,
|
|
544
544
|
configurable: true
|
|
545
545
|
});
|
|
546
|
-
Object.defineProperty(
|
|
546
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulStatus", {
|
|
547
547
|
get: function () {
|
|
548
548
|
return this.configParams.px_login_successful_status;
|
|
549
549
|
},
|
|
550
550
|
enumerable: false,
|
|
551
551
|
configurable: true
|
|
552
552
|
});
|
|
553
|
-
Object.defineProperty(
|
|
553
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulBodyRegex", {
|
|
554
554
|
get: function () {
|
|
555
555
|
return this.configParams.px_login_successful_body_regex;
|
|
556
556
|
},
|
|
557
557
|
enumerable: false,
|
|
558
558
|
configurable: true
|
|
559
559
|
});
|
|
560
|
-
Object.defineProperty(
|
|
560
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulHeaderName", {
|
|
561
561
|
get: function () {
|
|
562
562
|
return this.configParams.px_login_successful_header_name;
|
|
563
563
|
},
|
|
564
564
|
enumerable: false,
|
|
565
565
|
configurable: true
|
|
566
566
|
});
|
|
567
|
-
Object.defineProperty(
|
|
567
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulHeaderValue", {
|
|
568
568
|
get: function () {
|
|
569
569
|
return this.configParams.px_login_successful_header_value;
|
|
570
570
|
},
|
|
571
571
|
enumerable: false,
|
|
572
572
|
configurable: true
|
|
573
573
|
});
|
|
574
|
-
Object.defineProperty(
|
|
574
|
+
Object.defineProperty(ConfigurationBase.prototype, "ciDefaultLoginSuccessfulCustomCallback", {
|
|
575
575
|
get: function () {
|
|
576
576
|
return this.configParams.px_login_successful_custom_callback;
|
|
577
577
|
},
|
|
578
578
|
enumerable: false,
|
|
579
579
|
configurable: true
|
|
580
580
|
});
|
|
581
|
-
|
|
581
|
+
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigAuthToken", {
|
|
582
|
+
get: function () {
|
|
583
|
+
return this.configParams.px_remote_config_auth_token;
|
|
584
|
+
},
|
|
585
|
+
enumerable: false,
|
|
586
|
+
configurable: true
|
|
587
|
+
});
|
|
588
|
+
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigSecret", {
|
|
589
|
+
get: function () {
|
|
590
|
+
return this.configParams.px_remote_config_secret;
|
|
591
|
+
},
|
|
592
|
+
enumerable: false,
|
|
593
|
+
configurable: true
|
|
594
|
+
});
|
|
595
|
+
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigVersion", {
|
|
596
|
+
get: function () {
|
|
597
|
+
return this.configParams.px_remote_config_version;
|
|
598
|
+
},
|
|
599
|
+
enumerable: false,
|
|
600
|
+
configurable: true
|
|
601
|
+
});
|
|
602
|
+
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigId", {
|
|
603
|
+
get: function () {
|
|
604
|
+
return this.configParams.px_remote_config_id;
|
|
605
|
+
},
|
|
606
|
+
enumerable: false,
|
|
607
|
+
configurable: true
|
|
608
|
+
});
|
|
609
|
+
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigRetryIntervalMs", {
|
|
610
|
+
get: function () {
|
|
611
|
+
return this.configParams.px_remote_config_retry_interval_ms;
|
|
612
|
+
},
|
|
613
|
+
enumerable: false,
|
|
614
|
+
configurable: true
|
|
615
|
+
});
|
|
616
|
+
Object.defineProperty(ConfigurationBase.prototype, "remoteConfigMaxFetchAttempts", {
|
|
617
|
+
get: function () {
|
|
618
|
+
return this.configParams.px_remote_config_max_fetch_attempts;
|
|
619
|
+
},
|
|
620
|
+
enumerable: false,
|
|
621
|
+
configurable: true
|
|
622
|
+
});
|
|
623
|
+
return ConfigurationBase;
|
|
582
624
|
}());
|
|
583
|
-
exports.
|
|
625
|
+
exports.ConfigurationBase = ConfigurationBase;
|