AdalServiceException: AADSTS7000218: The request body must contain the following parameter: ‘client_assertion’ or ‘client_secret’.
While trying to connect Dynamics 365 online from console app sometimes you get the exception. The solution is you have to enables Allow Public client Flow option for the App you registered.
Go to Azure Active Directory and open the App Registration then choose Authentication and enable the Allow Public Client Flow then save. Now the problem will solved.