mk-fg / python-onedrive

Obsolete python/cli module for MS SkyDrive/OneDrive's old API, do not use for new projects
Do What The F*ck You Want To Public License
199 stars 32 forks source link

Auth-link does not work #20

Closed scotty86 closed 10 years ago

scotty86 commented 10 years ago

Hello,

when opening the auth-link in a browser, I always get this error: unbenannt

Regards scotty

mk-fg commented 10 years ago

I just tried auth here and I'm just getting an empty page right after password prompt. Might be transient issue with the service, or maybe they've changed something hard in the api. Will look into it... sometime later.

cybertim commented 10 years ago

This is what I get back in the error desc.:

"The provided value for the input parameter %27redirect_uri%27 is not valid. The client application must be marked as %27mobile%27%2c or the value must be an absolute URL which matches the registered redirect"

So something has changed in the API.

Hope it can be updated soon, I use this cli for my backups ;)

mk-fg commented 10 years ago

Uhh... actually, with error you're describing it doesn't seem to be a bug - it's documented in README from day-0 under https://github.com/mk-fg/python-onedrive/#command-line-usage

App registration in DevCenter is really straightforward and shouldn't take more
than a few clicks. Be sure to check the "mobile client app" box under "API settings".

Did you check that box? Error seem to be indicating that it's unset.

cybertim commented 10 years ago

solved it - deleted the whole devcenter entry, recreated the .lcrc, re-authed, now it works. I was upgrading from 'skydrive-cli' to the new 'onedrive-cli'.

scotty86 commented 10 years ago

Thank you for your replies. Yes I did mark it as mobile app. Now I created a new application in the developer center and selected for the language English (not German). It works \o/ Don't know if it's just a coincidence or the language is important.

Great job guys, thank you!

mk-fg commented 10 years ago

There was one occasion in the past when OneDrive (iirc shortly after rename) seem to have invalidated all app auth tokens (re-running "auth" fixed that), now it sounds like some app settings or client id/secret pairs got invalidated, weird.

Auth/refresh tokens weren't broken this time for me, but removing these for current app still leads to broken page from "auth" command. Guess re-creating app in devcenter as you guys suggest should fix that for me as well, thanks.