You’re using a federated server for authentication.
When you try to log on to the OneDrive sync client for Mac in this scenario, you receive the following error message:
There was a problem connecting to OneDrive. Check your internet connection and then try again.
To resolve this issue, install the updated version (version 17.3.6378.0415 or later) of the OneDrive sync client for Mac that's available in the Mac App Store. You can use the following link to find the update, or search for "OneDrive" in the Mac App Store on your Mac:
If you're using the OneDrive sync client for Mac version 17.3.6298.0108 or earlier, you aren't affected.
Third-party information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.