See the full official documentation for the Human Security Azure Enforcer here.
- Install dependencies with
npm install
. - Configure the enforcer by modifying the
EnforcerFunction/config.ts
file. - Compile the enforcer by running
npm run build
. - Publish the enforcer to your Function App by running
func azure functionapp publish <APP_NAME> --typescript
. (You must have Azure Functions Core Tools installed to run this command.) - Add the following variables to your deployed Function App Configuration Settings:
PX_APP_ID
- The application ID (available in the portal)PX_AUTH_TOKEN
- The server token (available in the portal)PX_COOKIE_SECRET
- The cookie secret associated with the Bot Defender security policy (available in the portal)FRONT_DOOR_SECRET_KEY
- A secret key that will be added as a request header and used in Front Door to verify incoming requests