1 |
On Wednesday 02 Sep 2015 09:06:00 Fernando Rodriguez wrote: |
2 |
> On Wednesday, September 02, 2015 7:01:24 AM Mick wrote: |
3 |
> > On Wednesday 02 Sep 2015 00:04:19 Fernando Rodriguez wrote: |
4 |
> > > On Tuesday, September 01, 2015 11:25:08 AM Mick wrote: |
5 |
> > > > On Friday 28 Aug 2015 12:55:37 you wrote: |
6 |
> > > > > Hi All, |
7 |
> > > > > |
8 |
> > > > > Apparently OneDrive, the Microsoft cloud storage, is using the |
9 |
> > > > > webdav protocol. However, to effect authentication OneDrive uses |
10 |
> > > > > redirection to a different URL, which breaks Linux connections to |
11 |
> > > > > it. This page explains someone's attempts using the previous MS |
12 |
> > > > > offering of SkyDrive: |
13 |
> > > > > |
14 |
> > > > > http://blog.lazut.in/2012/12/skydrive-webdav-access.html |
15 |
> > > > > |
16 |
> > > > > I've tried the suggestions using both cadaver and dolphin. Both |
17 |
> |
18 |
> failed |
19 |
> |
20 |
> > > > > to connect. I have not used net-fs/davfs2 to mount OneDrive, but I |
21 |
> > > > > read in the above link that davfs2 does not handle redirects |
22 |
> > > > > either. |
23 |
> > > > > |
24 |
> > > > > Would you know of some trick to allow me to access onedrive from |
25 |
> |
26 |
> Linux? |
27 |
> |
28 |
> > > > > Read only access will do for the use case I have in mind, which is |
29 |
> > > > > to browse and download some files from a customer's shared folder. |
30 |
> > > > > |
31 |
> > > > > |
32 |
> > > > > PS. I've also found 'onedrive-d' a python script/program, which |
33 |
> > > > > does not seem to be available in portage, or any overlays. Do you |
34 |
> > > > > know if there's an ebuild somewhere for it? However, I think that |
35 |
> > > > > this is for synch'ing a local fs to OneDrive - something I am not |
36 |
> > > > > necessarily interested in. |
37 |
> > > > |
38 |
> > > > What?! No-one on this list had to use OneDrive? I can't believe it. |
39 |
> : |
40 |
> :p |
41 |
> : |
42 |
> > > I've had to but wasn't able to :) Only for a little while I got it to |
43 |
> > > work with an old version of onedrive-d until it stopped working. I |
44 |
> > > decided to give the last usable version[1] (that's the one they're |
45 |
> > > using with Ubuntu, the one on the new repo says it's not usable) a try |
46 |
> > > but it has python deps that are not on gentoo or conflict. |
47 |
> > > |
48 |
> > > https://github.com/xybu/onedrive-d-old/tree/future |
49 |
> > |
50 |
> > Thank you Fernando. |
51 |
> > |
52 |
> > So, I take it that no direct webdav based access is possible at this |
53 |
> > stage. |
54 |
> |
55 |
> I |
56 |
> |
57 |
> > was hoping that some structured URL invocation would get me there, but it |
58 |
> > seems this won't be the case. :-( |
59 |
> |
60 |
> There must be but I never got it to work and it's not documented so it's |
61 |
> subject to change. There's documented REST API[1] I got this from |
62 |
> Clementine's code: |
63 |
> |
64 |
> https://login.live.com/oauth20_token.srf?client_id=0000000040111F16&client_ |
65 |
> secret=w2ClguSX0jG56cBl1CeUniypTBRjXt2Z&grant_type=refresh_token&refresh_to |
66 |
> ken= |
67 |
> |
68 |
> If you install clementine and login to onedrive you'll have a refresh_token |
69 |
> on the config file. Append it to that url and it'll give you an access |
70 |
> token good for five minutes. Then to list the contents of a folder: |
71 |
> |
72 |
> https://apis.live.net/v5.0/folder.<cid>.<id>/files?access_token=<access_tok |
73 |
> en> |
74 |
> |
75 |
> to get a file (this will give you a direct url on the source field): |
76 |
> |
77 |
> https://apis.live.net/v5.0/file.<cid>.<id>?access_token=<access_token> |
78 |
> |
79 |
> |
80 |
> Maybe you can play with the webdav urls and the access token and see if you |
81 |
> can get it to work. |
82 |
|
83 |
Thanks Fernando! I will give this a spin and see if I can get it to work. |
84 |
|
85 |
-- |
86 |
Regards, |
87 |
Mick |