Dropbox OAuth help

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Dropbox OAuth help

Post by Klaus » Wed Jan 31, 2018 6:46 pm

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

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Dropbox OAuth help

Post by bogs » Wed Jan 31, 2018 8:45 pm

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:
Image

gmccarthy
Posts: 62
Joined: Sat Feb 17, 2007 4:56 am
Location: Australia

Re: Dropbox OAuth help

Post by gmccarthy » Fri Feb 09, 2018 7:18 am

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.
gmcrev

Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Dropbox OAuth help

Post by Klaus » Fri Feb 09, 2018 12:36 pm

Pardon my ignorance, but if I do that, then other users can use my app with THEIR dropbox?

gmccarthy
Posts: 62
Joined: Sat Feb 17, 2007 4:56 am
Location: Australia

Re: Dropbox OAuth help

Post by gmccarthy » Fri Feb 09, 2018 12:50 pm

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.
gmcrev

Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Dropbox OAuth help

Post by Klaus » Fri Feb 09, 2018 12:55 pm

OK, thank you anyway :-)

Post Reply

Return to “Internet”