PSaaS Appliance: Webtasks

Beginning with Build 7247, you may use the PSaaS Appliance's version of Webtasks to execute your rules and custom database logic.


Prior to working with Webtasks, please ensure that you have configured the:

Auth0 provides auth0-sandbox, a stage (sometimes referred to as a sandbox) on which you may run your rules and custom database logic.

Working with Webtasks

You may use Webtasks by calling its endpoints directly. This can be done using the Webtask Command Line Interface (wt-cli) and specifying the --url "https://webtask.<a0url>.com" parameter (where a0url is the address of the PSaaS Appliance node). For additional information on setting up the wt-cli, please see Getting Started with Webtasks.

Node.js Modules

Currently, not all of the Node.js modules available for the Auth0 Cloud Environment are available for the PSaaS Appliance.

To see which modules are available for Webtasks running on PSaaS Appliance instances, execute the List Modules Webtask on your PSaaS Appliance instance.

Set up the List Modules Webtask

First, copy locally the List Modules Webtask, either by downloading the file from GitHub or by copying this code:

Next, create a Webtask profile using wt-cli (if you don't already have one):

Finally, you are ready to register your Webtask using the wt create command. This command receives as input a path or URL of the ebtask's code and provides as output the URL where the Webtask is available.

If you saved the file under a my-webtasks directory as list_modules.js you would use the following:

You should get a message that the Webtask was created, alongside with the URL to access it. The response is a JSON object.

Keep reading