I have integrated the Dropbox API into my .NET software.
In order for the user to link his account with the dropbox folder used by my software,
my software gives the user a URL that he enters in his browser. The URL is something like:
www.dropbox.com/oauth2/authorize?client_id=(hidden code)&response_type=code
That will ask the user to allow the app into his account and will provide him a code similar to:
agxeeSYeS3wABBBBBBBHMWVX1Rs6fIV0BeiMM_CroNk (fake code)
This code the user will type back in my software to finish the process and exchange to a permanent code.
The problem is that I was successful to link my own account, and one account of a colleague.
However testing with another person's dropbox failed. I attempted multiple times.
Remarks:
1.
Now you might be thinking why this is done manually like this...
This is because the .NET software using the dropbox runs into a small portable device with tiny screen.
I cannot open the browser there. So I provide the URL so the user can access his account in a different machine (often in a different network) and request the authorization code. Then the user goes back to my .NET app where he enters the code letter by letter.
2.
My App is still in "Developer" status and has not been published. I have not linked more than 6 users to it so far. (so the 50/500 limit does not apply)
3.
Even though the process seems to fail, the user sees in his dropbox account one folder with my App's name.
Which indicates that the authorization succeeded up to some point.
I suspect that there might be security mechanisms involved there, or I might be missing something.
Is there any reason why this authentication fails? Timeouts? I will see if I can generate a detailed log.