简体   繁体   中英

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

I'd suggest checking out the OneDrive SDK - it has samples that include authentication. Alternatively, since you're writing a UWP you could consider the UWP Community Toolkit that has OneDrive support via UWP file-like interfaces.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM