You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Simone11's avatar
Simone11
Explorer | Level 4
6 years ago

Is it possible to hardcode the login credentials For Dropbox API when login the 1st time?

Hello,

I have Dropbox api integrated in my iOS app. I want to know if it is possible to hardcode dropbox login details (uersname/password) when users 1st time launches the app.

This is require because we have an enterprise iOS app and we want to use just one dropbox account for all out clinets. so that wen they intall the app they should directly get access to that single dropbox account.

If not let me know if there is any other alternative.

Many Thanks,

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. It is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.

    However if you did go this route, instead of kicking off the authorization flow, you would embed an existing access token for your account and app (not your username and password). Again though, this is not reccomended. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!