activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity activities

Last updated Mar 13, 2026

AADSTS7000218: The request body must contain the following parameter: client_assertion or client_secret

Issue

When using the username and password authentication, you may encounter the following error: A configuration issue is preventing authentication - check the error message from the server for details. You can modify the configuration in the application registration portal. For details, check See https://aka.ms/msal-net-invalid-client. Original exception: AADSTS7000218: The request body must contain the following parameter: client_assertion or client_secret.

Solution

  1. In Azure, go to App registrations, select your application, then navigate to the Authentication tab.
  2. Go to Advanced Settings and enable the Allow public client flow setting.
  • Issue
  • Solution

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated