> ## Documentation Index
> Fetch the complete documentation index at: https://auth0-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn about Rules and how you can use them to customize and extend Auth0's capabilities.

# Auth0 Rules

<Warning>
  The End of Life (EOL) date of Rules and Hooks will be **November 18, 2026**, and they are no longer available to new tenants created as of **October 16, 2023**. Existing tenants with active Hooks will retain Hooks product access through end of life.

  We highly recommend that you use Actions to extend Auth0. With Actions, you have access to rich type information, inline documentation, and public `npm` packages, and can connect external integrations that enhance your overall extensibility experience. To learn more about what Actions offer, read [Understand How Auth0 Actions Work](/docs/customize/actions/actions-overview).

  To help with your migration, we offer guides that will help you [migrate from Rules to Actions](/docs/customize/actions/migrate/migrate-from-rules-to-actions) and [migrate from Hooks to Actions](/docs/customize/actions/migrate/migrate-from-hooks-to-actions). We also have a dedicated [Move to Actions](https://auth0.com/extensibility/movetoactions) page that highlights feature comparisons, [an Actions demo](https://www.youtube.com/watch?v=UesFSY1klrI), and other resources to help you on your migration journey.

  To read more about the Rules and Hooks deprecation, read our blog post: [Preparing for Rules and Hooks End of Life](https://auth0.com/blog/preparing-for-rules-and-hooks-end-of-life/).
</Warning>

Rules can be used in a variety of situations as part of the authentication pipeline where protocol-specific artifacts are generated:

* an <Tooltip tip="ID Token: Credential meant for the client itself, rather than for accessing a resource." cta="View Glossary" href="/docs/glossary?term=ID+token">ID token</Tooltip> in <Tooltip tip="ID Token: Credential meant for the client itself, rather than for accessing a resource." cta="View Glossary" href="/docs/glossary?term=OpenID">OpenID</Tooltip> Connect (OIDC)
* an <Tooltip tip="Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API." cta="View Glossary" href="/docs/glossary?term=access+token">access token</Tooltip> in <Tooltip tip="Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API." cta="View Glossary" href="/docs/glossary?term=OAuth+2.0">OAuth 2.0</Tooltip>
* an assertion in <Tooltip tip="Security Assertion Markup Language (SAML): Standardized protocol allowing two parties to exchange authentication information without a password." cta="View Glossary" href="/docs/glossary?term=SAML">SAML</Tooltip>

A new pipeline in which rules execute is created for each authentication request, and Rules are subject to Auth0's [Rate Limit Policy](/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy).

| Read...                                                                              | To learn...                                                                                                        |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| [Rule Use Cases](/docs/customize/actions/use-cases)                                  | About different rule uses cases.                                                                                   |
| [Create Rules](/docs/customize/rules/create-rules)                                   | How to create rules using the Auth Dashboard or the Management API.                                                |
| [Store Rule Configurations](/docs/customize/rules/configuration)                     | How to use the global configuration object in rules for storing commonly used values.                              |
| [Cache Expensive Resources in Rules](/docs/customize/rules/cache-resources)          | How to use the `global` object to reuse resources stored there instead of creating them every time you run a rule. |
| [Debug Rules](/docs/customize/rules/debug-rules)                                     | How to debug rules.                                                                                                |
| [Use the Management API from Within Rules](/docs/customize/rules/use-management-api) | How to access the Auth0 Management API endpoints from within rules.                                                |
| [Redirect Users from Within Rules](/docs/customize/rules/redirect-users)             | How to use rules to redirect users before an authentication transaction is complete.                               |
| [User Object Properties in Rules](/docs/customize/rules/user-object-in-rules)        | About the `user` object and how it stores information logged in users returned by the identity provider.           |
| [Context Object Properties in Rules](/docs/customize/rules/context-object)           | About the `context` object and how it stores contextual information about the current authentication transactions. |
| [Raise Errors from Rules](/docs/customize/rules/raise-errors-from-rules)             | How to display an error message to users from within rules.                                                        |
