The AWS API Gateway Lambda Enforcer works using API Gateway’s Lambda authorizer. The enforcer is provided as a Node.js NPM package that can be integrated into an existing Lambda authorizer or used to create a brand new Lambda authorizer.
Installing the enforcer consists of three main steps:
index.ts file can be used as a basis.esbuild to compile the TypeScript file to ./dist/index.js, which can be deployed to the Lambda.)context.pxResponseBody with the block page (HTML or JSON). Therefore, you should change the API Gateway response to display this response body instead of the default.If your front-end JavaScript makes XHR calls to the API Gateway and you would like to use the Auto-ABR functionality, be sure to add the API Gateway domain to the custom ABR domains variable in the front-end JavaScript snippet. See here for more information.
APP_ID - the application ID provided by HUMAN Security (e.g., PX1234).APP_ID_SUFFIX - your application ID without the PX prefix (e.g., 1234).
If any custom first party endpoints are configured in the Lambda code, these endpoints should be added to the above resources in the API Gateway as well.