cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

trying to Auth in swift using generated access token

trying to Auth in swift using generated access token

Andy D.17
New member | Level 1

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 1

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?