Using Dropbox access token from multiple devices

你。 提交于 2020-01-06 10:22:40

问题


Today - Users' Dropbpox access tokens - which are obtained when a user authenticates the app - are kept in my backend, linked to the authenticated user. So when a user authenticates once from any platform - he will have the same Dropbox access from any other platform or device he uses, since the access token are kept in the backend.

We want to allow each client to use the Dropbox SDK in order to communicate directly with Dropbox services where it seems fit, requiring the clients hold an use the connected user's Dropbox access key.

We're looking for a way to give the user a "seamless" Dropbox connection.

  • Is there an alternative where the user will not have to authenticate my app per device?
  • Can an access token be shared from one device to another?

回答1:


Yes, it looks like you have the right idea. If you don't want your users to authorize the app one per device, you can use the access token already on the server and distribute it to each of the user's clients.

Dropbox API access tokens are not tied to specific devices or IP addresses, so you can share and re-use them across devices.

Access tokens are very sensitive though, so make sure you only transport them to authenticated parties, over secure channels.



来源:https://stackoverflow.com/questions/47952333/using-dropbox-access-token-from-multiple-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!