This means you didn't use a valid client id for a desktop application: either DavMail default value or another desktop application authorized by O365 admins.

If you try to use a web application client id a client secret will be required.