AADSTS70002: InvalidClient - Error validating the credentials
Issue
When using a Microsoft 365 activity with the Application ID and Secret authentication method, you encounter the error: AADSTS70002: InvalidClient - Error validating the credentials. The specified client_secret does not match the expected value for this client. Correct the client_secret and try again.
Solution
- In Azure, go to App registrations, select your application, then navigate to the Overview tab.
- Check the Directory ID (Tenant ID) and Application ID (Client ID) to ensure these are the IDs used for your authentication configuration.
- Navigate to the Certificates & secrets tab and generate a new secret to be used in the Scope activity.. This ensures you are using the correct secret. Make sure you copy the Secret Value, not the Secret ID.