auth0
strategy.
changePassword
action script is called when a password change operation occurs for a user that resides in a legacy identity store.login
action script completes. We therefore recommend that you do not attempt any deletion of a user from a legacy identity store as an inline operation (i.e., within the login
script) but perform the deletion as an independent process. This will prevent accidental deletion of a user should an error condition occur during the migration process.
In an automatic migration scenario, users remain in the legacy identity store and can be deleted or archived if required. One side effect of this can occur if a user is deleted from Auth0 but still remains present in the legacy identity store. In this case, a login actioned by the deleted user could result in either the login
and/or getUser
script being executed and the user being migrated from the legacy identity store once again.
login
or getUser
completes and prior to any eventual legacy store deletion.
npm
modules that may be referenced as part of any require statements.npm
modules not only reduce the overall size of action script code implementation, but also provide access to a wide range of pre-built functionality.
Many publicly available npm
modules are supported out-of-the-box. The list has been compiled and vetted for any potential security concerns. If you require an npm
module that is not supported out-of-the-box, then you can make a request through the Auth0 support portal or your Auth0 representative. Auth0 will evaluate your request to determine suitability. There is currently no support in Auth0 for the user of npm
modules from private repositories.
configuration
object. To learn more, read the Add Configuration Parameters section in Create Custom Database Connections.
configuration
object should be treated as read-only, and should be used for storing sensitive information such as credentials or API keys for accessing external identity stores. This mitigates having security sensitive values hard coded in an action script.
The configuration object can also be used to support whatever Software Development Life Cycle (SDLC) strategies you employ by allowing you to define variables that have tenant specific values. This mitigates hard coded values in an action script which may change depending upon which tenant is executing it.
global
object, which can be accessed across all action scripts that execute within the container instance. The global
object acts as a global variable that’s unique to the container, and that can be used to define information or functions used across all action scripts that run in the container instance.
This means that the global
object can be used to cache expensive resources as long as those resources are not user-specific. For example, you could use it to store an for a third-party (logging) API that provides non-user-specific functionality. Or you could store an Access Token to your own non-user-specific API defined in Auth0 and obtained via the Client Credentials Flow.
global
object, and should always ensure that any declaration made within the global
object provides for initialization too.global
object it defines is reset. Thus, any declaration of assignment within the global
object associated with a container should also include provision for initialization too.
global
object to be anything more than 20 minutes.
global
object in order to improve performance. The API can then provide a discrete number of protected endpoints that perform only the legacy management functionality required (for example, read user
, change password
).
/authorize
is intercepted and the audience to the API is added.