From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: OneDrive access from Linux using webdavs
Date: Wed, 2 Sep 2015 18:52:17 +0100 [thread overview]
Message-ID: <201509021852.26780.michaelkintzios@gmail.com> (raw)
In-Reply-To: <BLU436-SMTP191B035E772897311A0818D690@phx.gbl>
[-- Attachment #1: Type: Text/Plain, Size: 3473 bytes --]
On Wednesday 02 Sep 2015 09:06:00 Fernando Rodriguez wrote:
> On Wednesday, September 02, 2015 7:01:24 AM Mick wrote:
> > On Wednesday 02 Sep 2015 00:04:19 Fernando Rodriguez wrote:
> > > On Tuesday, September 01, 2015 11:25:08 AM Mick wrote:
> > > > On Friday 28 Aug 2015 12:55:37 you wrote:
> > > > > Hi All,
> > > > >
> > > > > Apparently OneDrive, the Microsoft cloud storage, is using the
> > > > > webdav protocol. However, to effect authentication OneDrive uses
> > > > > redirection to a different URL, which breaks Linux connections to
> > > > > it. This page explains someone's attempts using the previous MS
> > > > > offering of SkyDrive:
> > > > >
> > > > > http://blog.lazut.in/2012/12/skydrive-webdav-access.html
> > > > >
> > > > > I've tried the suggestions using both cadaver and dolphin. Both
>
> failed
>
> > > > > to connect. I have not used net-fs/davfs2 to mount OneDrive, but I
> > > > > read in the above link that davfs2 does not handle redirects
> > > > > either.
> > > > >
> > > > > Would you know of some trick to allow me to access onedrive from
>
> Linux?
>
> > > > > Read only access will do for the use case I have in mind, which is
> > > > > to browse and download some files from a customer's shared folder.
> > > > >
> > > > >
> > > > > PS. I've also found 'onedrive-d' a python script/program, which
> > > > > does not seem to be available in portage, or any overlays. Do you
> > > > > know if there's an ebuild somewhere for it? However, I think that
> > > > > this is for synch'ing a local fs to OneDrive - something I am not
> > > > > necessarily interested in.
> > > >
> > > > What?! No-one on this list had to use OneDrive? I can't believe it.
> :
> :p
> :
> > > I've had to but wasn't able to :) Only for a little while I got it to
> > > work with an old version of onedrive-d until it stopped working. I
> > > decided to give the last usable version[1] (that's the one they're
> > > using with Ubuntu, the one on the new repo says it's not usable) a try
> > > but it has python deps that are not on gentoo or conflict.
> > >
> > > https://github.com/xybu/onedrive-d-old/tree/future
> >
> > Thank you Fernando.
> >
> > So, I take it that no direct webdav based access is possible at this
> > stage.
>
> I
>
> > was hoping that some structured URL invocation would get me there, but it
> > seems this won't be the case. :-(
>
> There must be but I never got it to work and it's not documented so it's
> subject to change. There's documented REST API[1] I got this from
> Clementine's code:
>
> https://login.live.com/oauth20_token.srf?client_id=0000000040111F16&client_
> secret=w2ClguSX0jG56cBl1CeUniypTBRjXt2Z&grant_type=refresh_token&refresh_to
> ken=
>
> If you install clementine and login to onedrive you'll have a refresh_token
> on the config file. Append it to that url and it'll give you an access
> token good for five minutes. Then to list the contents of a folder:
>
> https://apis.live.net/v5.0/folder.<cid>.<id>/files?access_token=<access_tok
> en>
>
> to get a file (this will give you a direct url on the source field):
>
> https://apis.live.net/v5.0/file.<cid>.<id>?access_token=<access_token>
>
>
> Maybe you can play with the webdav urls and the access token and see if you
> can get it to work.
Thanks Fernando! I will give this a spin and see if I can get it to work.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-09-02 17:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 11:55 [gentoo-user] OneDrive access from Linux using webdavs Mick
2015-09-01 10:25 ` [gentoo-user] " Mick
2015-09-01 23:04 ` Fernando Rodriguez
2015-09-02 6:01 ` Mick
2015-09-02 8:06 ` Fernando Rodriguez
2015-09-02 17:52 ` Mick [this message]
2015-09-02 9:03 ` J. Roeleveld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201509021852.26780.michaelkintzios@gmail.com \
--to=michaelkintzios@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox