Auth0 Home Blog Docs

Rule execution stage documentation

Looking for the available values for rule execution stages.

Hey there @Bill.Developer!

Can you share a little bit more context around what you’re looking for as I’m not sure if I understand your needs correctly

Thank you!

Sure!

We’re configuring our tenant’s rules via auth0-deploy-cli, which requires us to both include the rules JS file and a JSON file. The body of the JSON rule-configuration file is similar to what’s documented in the v2 management api here. Typically we see the property stage with the value of login_success like this

{
  "enabled": true,
  "script": "./my-rule.js",
  "name": "Do some stuff with claims",
  "order": 2,
  "stage": "login_success"
}

This indicates that there is a rule execution pipeline, where order and stage are used to sort and run rules, respectively.

Would like to know each possible value of the stage property and the order in which they execute.

Let me dig into that and get back to you soon!

1 Like

Hey @konrad.sopala find anything out ?