ShinyApp - Dropbox authentication with rdrop2

瘦欲@ 提交于 2019-12-04 22:01:57

Problem solved: had a fresh look at the instructions provided by rdrop2:

  1. The two first lines of code are to be done locally and once only:

    token<-drop_auth() saveRDS(token, "droptoken.rds")

  2. The file droptoken.rds is to be stored in the under the same folder structure than the one where the app is being developped.

  3. The two last lines of code are to be kept in the app:

    token<-drop_auth() saveRDS(token, "droptoken.rds")

This way when you deploy your app on a server, you're deploying also the token with it. Poses some security issues but I'll need to wait for a good set of instructions for oauth with dropbox under r.

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