Closed Gamer92000 closed 1 year ago
Related information:
One of the current workarounds:
Thanks for all the references @bai-jie! Unfortunately, this does not work for OneDrive but only SharePoint. But it still helped a lot with getting me started. In the end, I mostly followed MS's example for Passport1.4 though.
Hello Collaborators,
Describe the bug When using OneDrive as the WebDav server things get weird. In short: The authentication fails because of Microsoft.
Software
To Reproduce
ReadDir()
)Expected At least an authentication error should be returned. Even better would be support for MS's need to be proprietary.
Additional context Microsoft (as expected) does not follow industry standards and instead of returning
401
on unauthenticated requests they return302
to redirect you to the login page. The login page then return a200
status so the webdav client thinks it is a valid result for the original request. On its own this would not be too bad as you could catch the redirect and handle it like a401
. But since Microsoft use their own authentication method (MS-PASS withPassport1.4
) you also need a new authenticator.