Custom Database Connection and Action Script Best Practices
Only Enterprise subscription plans include the ability to use a custom database for authentication requests. For more information, see Auth0 pricing plans.
Extensibility provides the capability to add custom login in Auth0 as a mechanism for building out last-mile solutions for Identity and Access Management (IdAM). Auth0 extensibility comes in several forms:
- Rules: Run when artifacts for user authenticity are generated. For example:
- Hooks: Provide additional extensibility when there is an exchange of non-user-related artifacts and when user identities are created such as pre-user registration and post-user registration.
- Scripts for both Custom Database Connections and Migrations: Used to integrate with an existing user identity store or where automatic user migration from an independent or legacy identity store are required.
Each extensibility type uses Node.js running on the Auth0 platform in an Auth0 tenant.
Whatever the use case, Auth0 extensibility provides comprehensive and sophisticated capability to tailor IdAM operations to your exact requirements. However, if not utilized in the right way, this can open up the potential for improper or unintended use which can lead to problematic situations down the line. In an attempt to address matters ahead of time, this document provides best practice guidance to both designers and implementers, and we recommend reading it in its entirety at least once, even if you've already started your journey with Auth0.