Error AADSTS7000218 "The Request Body Must Contain The Parameter client_assertion or client_secret"
This article provides a solution for the following error that occurs when an application attempts to connect to Microsoft Azure Active Directory (Azure AD) from Auth0:
AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'
-
Microsoft Azure Active Directory
-
Auth0
This error occurs because the Client Secret configured in the Auth0 connection for Azure AD is missing, expired, or invalid.
To resolve this issue, generate a new client secret in the Azure portal and update the connection settings in Auth0.
-
In the Azure Portal, navigate to the App Registration for the application that corresponds to the Auth0 connection.
-
Go to Manage > Certificates & secrets.
-
Select + New client secret, add a description, and set an expiration date.
-
Copy the new secret's Value.
-
NOTE: The secret value cannot be viewed again after leaving the page.
-
-
In the Auth0 Dashboard, navigate to Authentication > Enterprise > Microsoft Azure AD.
-
Select the connection that requires troubleshooting.
-
Paste the new secret Value from the Azure Portal into the Client Secret field.
-
Select Save.
After updating the secret, the connection should work as expected.