Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not connect to SharePoint Online: Legacy Auth blocked by ADFS Claim rule #1414

Open
buidav opened this issue Nov 11, 2024 · 0 comments
Labels
bug This issue or pull request addresses broken functionality

Comments

@buidav
Copy link
Collaborator

buidav commented Nov 11, 2024

🐛 Summary

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 -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.

To reproduce

Requires ADFS claim rule blocking legacy auth to recreate this error.

Expected behavior

Successful SharePoint Authentication

@buidav buidav added the bug This issue or pull request addresses broken functionality label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality
Projects
None yet
Development

No branches or pull requests

1 participant