I don’t need help, I’ve resolved my issue. As such, I’m being reprioritized.
I wanted to get this information out before I forget it.
We were running into this error: “Please implement the Login script for this database connection at…” despite our not using either the “Use my own database” nor “Import Users to Auth0”. We have never used either of those features. I confirmed that it was running the custom database login script by modifying it via the Management API (via Terraform).
From the time I was able to spend on it, the problem is that the Go SDK (used by the Auth0 Terraform Provider) is marking the field as OmitEmpty, which results in the value false not being sent to the Management API. The API proceeds to omit the property from the state on subsequent calls to either list Connections (GET /api/v2/connections) or get Connection by ID (GET /api/v2/connections/:id). While in this state, Auth0 behaves the same as if the value was present and set to true rather than what all of the code is assuming, that it is the same as if it were set to false.
I was able to fix my own setup by supplying an explicit ”enabledDatabaseCustomization”: false in a call to update the connection (PATCH /api/v2/connections/:id)
If I had more time I would test the Management API behavior more, alas release day is tomorrow.
I may be able to contribute more another time.