Logins failing with "error": "access_denied", "error_description": "Must provide a domain"

Problem statement

When attempting to login with any of our applications we are seeing the following error message:

"error": "access_denied",
"error_description": "Must provide a domain"


This error was being thrown by an Action, when attempting to use the value event.secrets.auth0Domain when creating the ManagementClient but not configuring any secrets for this Action. Therefore, it’s inputting a null value in the domain attribute, and the error message “Must provide a domain” is saying that the domain needs a valid value.


This issue can be resolved by adding all the required secrets for that Action, which for the ManagementClient includes auth0Domain, clientId, clientSecret.