AADSTS7000215: Invalid client secret
The secret in the token request isn't valid for the specified application. A common mistake is copying the secret's ID instead of its value.
What to check
- Verify that the tenant and client ID point to the intended app registration.
- Confirm that the application reads the secret value from its secret store, not the secret ID. Don't share the value or log the token request.
- If you no longer have the original value, create a replacement credential and update the application's secret store.
Official reference
Microsoft Learn: Microsoft Entra authentication error codes
Microsoft error lookup
Message summary: Microsoft distinguishes the secret's value from its identifier. The token request needs the value for a secret on the app named in the response.
Fields in the message template: {identifier}.
Microsoft remediation: The app developer should check that the request supplies the authentication parameters the flow expects and that each value is correct.