Search code examples
c#.netuwpwebdavonedrive

UWP OneDrive access with HttpClient (WebDav commands)


I'm trying to figure out, how the the Access to OneDrive works, when adding a netshare on my Windows 10 PC with the "WebDav" URI (https://d.docs.live.net/CustomerID). So it seems that basically the Access works with WebDav commands, but the authentication seems to be with Microsoft Passport. Now inside my UWP test app i can Access WebDav Servers with Basic and Digest authentication, but i can't Access OneDrive. What exactly do i need to implement, to authenticate with OneDrive?

Thanks in advice


Solution

  • After a lot of testing, i figured out, how to retreive an access token for sending webdav-requests to onedrive, which works the same way, as a connected network share to onedrive in windows does. Fiddler helped me to understand the process of authentication.

    Thanks for all the answers.

    Best Regards