When using the UiPath Office365 activity, following error message is thrown "AADSTS7000218 The request body must contain the following parameter 'client_assertion' or 'client_secret' " .
Issue description: When using UsernameAndPassword authentication from Office 365 Scope, the following error is thrown when trying to authenticate
Full error in text:
RemoteException wrapping Microsoft.Graph.ServiceException: Code: generalException Message: An error occurred sending the request. ---> RemoteException wrapping Microsoft.Identity.Client.MsalServiceException: 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. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.
Resolution:
Go to Azure -> App Registrations -> <Select your App Registration> -> go to the Authentication blade -> Enable "Allow public client flow" under Advanced Settings
Go to Azure -> App Registrations -> <Select your App Registration> -> go to the Authentication blade -> Enable "Allow public client flow" under Advanced Settings

