Page 1 of 1

Dropbox OAuth help

Posted: Wed Jan 31, 2018 6:46 pm
by Klaus
Hello friends,

anyone ever published an app (mobile or desktop) that lets the user access his dropbox?
If yes, how did you implement the "OAuth app authorization flow" of Dropbox?

I can use MY accesstoken on MY machine, but that will not work on other machines.
On other machines I need to implement the "OAuth app authorization flow" of Dropbox
as described here: https://www.dropbox.com/developers/refe ... auth-guide

But I have no idea how that should look/be done in Livecode.

Can this be scripted completely or does the user really need to copy a token from Dropbox (?)
and enter in my application? That is the part I really don't get...

Thanks a lot in advance for any hint!


Best

Klaus

Re: Dropbox OAuth help

Posted: Wed Jan 31, 2018 8:45 pm
by bogs
After all the help you've given me (and a lot of others), this is one time I really wish I had the answer for you :cry:

Re: Dropbox OAuth help

Posted: Fri Feb 09, 2018 7:18 am
by gmccarthy
Use OAuth 2 access token instead of flow.
At https://www.dropbox.com/developers/apps/ click on your app, leave Allow implicit grant set as Allow; then Generate access token to use in your app.

Re: Dropbox OAuth help

Posted: Fri Feb 09, 2018 12:36 pm
by Klaus
Pardon my ignorance, but if I do that, then other users can use my app with THEIR dropbox?

Re: Dropbox OAuth help

Posted: Fri Feb 09, 2018 12:50 pm
by gmccarthy
Sorry Klaus, I think I misunderstood your situation.
I was thinking of cases using the OAuth 2 access token when files are transferred between a master desktop program and a users client desktop program via a dropbox app. Encryption and decryption of a simple type can be coded into the programs so that users/clients are not given the actual token.
If the user creates an app themselves in dropbox, they can generate their own OAuth 2 access token and put that into an appropriate part of their program.
I can't help with the flow approach since I don't use it.

Re: Dropbox OAuth help

Posted: Fri Feb 09, 2018 12:55 pm
by Klaus
OK, thank you anyway :-)