Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
Andy D.17
9 years agoNew member | Level 1
trying to Auth in swift using generated access token
I have generated an access token for my app to allow users to access a dropbox folder to upload files.
I do not wish them to have an account to complete this.
Im struggling to find out how this can be accomplished in swift. Using SwiftyDropbox api.
Can someone point me in the right direction please ?
1 Reply
Sort By
- Greg-DB
Dropbox 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. However, 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.
Specifically, client-side apps, such as iOS apps written in Swift, fundamentally can't keep secrets. So, any malicious user of your app could extract the access token from the app, and use it directly, bypassing any access controls you may have tried to enforce.
However if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your account and app. (Just be careful not to revoke it, e.g. via https://www.dropbox.com/account/security .)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,000 PostsLatest Activity: 2 hours ago
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!