Search code examples
oauthoauth-2.0dropboxdropbox-apidropbox-php

Use of dropbox with core APIs, but avoiding login page


I want to use Dropbox for my file share application, using Core Dropbox APIs. I am using OAuth 2.0 APIs for authentication (Implicit Grant Method). The issue is, In order to obtain the access token, I need to be logged-in to dropbox account or it redirects me to Dropbox login page. I don't want my users to enter the login crediantials.

Is there any way to avoid login process, and directly get access token?? Or Alternatively can I do login using some login api in backend, without user iteraction??

here I am considering a single Dropbox account, whose all necessary crediantials are with me.

Thanks.


Solution

  • Putting probable solution to my own question here: The main issue here was about re-generation of the Access Token at some intervals, that too without any user interaction, a backend stuff. After going through Dropbox APIs, I concluded there is no API exposed for re-generation of Access Token automatedly. But Google Drive do offer Service Account, which do not require user interaction.