Auth0 Home Blog Docs

Deploy global database connection settings using bitbucket extentsion or the management api.

management-api
custom-database
bitbucket-extension

#1

I am wondering how to programmatically set the values of the custom database settings that populate the global configuration object.

Is it possible to set this global object without using the dashboard ?

Is it possible to do that with more complex objects than simple key:values ? For example, can I define global helper functions to use in these scripts ?


#2

At the moment it is not possible to set the configuration values via the API. You have to use the dashboard for this.

You can use global functions in rules, but not with database action scripts. If you have common code and would like to avoid duplication, I’d suggest that you use the Bitbucket extension, add common code separately and use a build process to concatenate the functions during the push, so they will appear in all scripts when being deployed to Auth0.


#3