1

First, make sure that you're not using multi-factor authentication for the SharePoint user and that the 'LegacyAuthProtocolsEnabled' property is set to True for the tenant: https://blogs.technet.microsoft.com/sharepointdevelopersupport/2018/10/27/sharepoint-online-authentication-in-powershell-for-csom-when-legacy-authentication-is-disabled-for-tenant-or-...


Only top voted, non community-wiki answers of a minimum length are eligible