Rules are code snippets written in JavaScript that are executed as part of the authentication pipeline in Auth0. This happens every time a user authenticates to an application. Rules enable very powerful customizations and extensions to be easily added to Auth0.
At this time, both Node 4 and Node 8 are supported to run your Webtask code, however Node 4 is going out of Long-term support. Migration guide here.
- Webtask Modules: https://auth0-extensions.github.io/canirequire/
- Additional Modules: https://auth0.com/docs/appliance/modules
- Rules are executed after user authentication so they are part of the authorization process.
- Rules are run in order, so logically ordering your rules is important.
- Read Auth0 best practices on Rules.