Open buidav opened 1 week ago
Public Issue #1407 reported that they could not authenticate to SharePoint Online via Interactive Auth and shared this error message
Could not connect to SharePoint Online
Microsoft documentation says this can be caused by a ADFS claim rule blocking legacy auth
Fix is to use Modern Auth by default. Adding these additional parameters to the Connect-SPOService call in Connection.psm1
Connect-SPOService
Connection.psm1
Connect-SPOService -Url https://REPLACEWITHYOURTENANTNAME-admin.sharepoint.com -ModernAuth $true -AuthenticationUrl https://login.microsoftonline.com/organizations
Don't think we need to continue supporting the legacy auth for SPO. So, no need for any conditionals or retry mechanism for Legacy auth in case Modern Auth fails.
Requires ADFS claim rule blocking legacy auth to recreate this error.
Successful SharePoint Authentication
🐛 Summary
Public Issue #1407 reported that they could not authenticate to SharePoint Online via Interactive Auth and shared this error message
Microsoft documentation says this can be caused by a ADFS claim rule blocking legacy auth
Fix is to use Modern Auth by default. Adding these additional parameters to the
Connect-SPOService
call inConnection.psm1
Don't think we need to continue supporting the legacy auth for SPO. So, no need for any conditionals or retry mechanism for Legacy auth in case Modern Auth fails.
To reproduce
Requires ADFS claim rule blocking legacy auth to recreate this error.
Expected behavior
Successful SharePoint Authentication