Wednesday, December 9, 2020

Could not authenticate to SharePoint Online using OAuth 2.0

SharePoint Online using OAuth In this article ,

Could not authenticate to SharePoint Online using OAuth 2.0

 $username = "test@am.onmicrosoft.com"

$password = "******"


$cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force)


Connect-SPOService -Url https://finders-admin.sharepoint.com -Credential $cred 

No comments:

Post a Comment