in bindings/akamai/src/index.ts [435:449]
export function recaptchaConfigFromRequest(request: EW.ResponseProviderRequest): RecaptchaConfig {
return {
projectNumber: parseInt(request.getVariable("PMUSER_GCPPROJECTNUMBER") || "0", 10),
apiKey: request.getVariable("PMUSER_GCPAPIKEY") || "",
actionSiteKey: request.getVariable("PMUSER_RECAPTCHAACTIONSITEKEY") || "",
expressSiteKey: request.getVariable("PMUSER_RECAPTCHAEXPRESSSITEKEY") || "",
sessionSiteKey: request.getVariable("PMUSER_RECAPTCHASESSIONSITEKEY") || "",
challengePageSiteKey: request.getVariable("PMUSER_RECAPTCHACHALLENGESITEKEY") || "",
recaptchaEndpoint: request.getVariable("PMUSER_RECAPTCHAENDPOINT") || DEFAULT_RECAPTCHA_ENDPOINT,
debug: request.getVariable("PMUSER_DEBUG") === "true",
unsafe_debug_dump_logs: request.getVariable("PMUSER_UNSAFE_DEBUG_DUMP_LOGS") === "true",
sessionJsInjectPath: request.getVariable("PMUSER_SESSION_JS_INSTALL_PATH"),
strict_cookie: (request.getVariable("PMUSER_STRICTCOOKIE") ?? "true") === "true", // default to true
};
}