Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 1.27 KB

README.md

File metadata and controls

13 lines (11 loc) · 1.27 KB

Azure Function Enforcer Example

See the full official documentation for the Human Security Azure Enforcer here.

  1. Install dependencies with npm install.
  2. Configure the enforcer by modifying the EnforcerFunction/config.ts file.
  3. Compile the enforcer by running npm run build.
  4. 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.)
  5. 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