How to authenticate box.net programmatically?

六眼飞鱼酱① 提交于 2019-12-11 08:28:03

问题


I am using OAuth 2.0 protocol to authenticate. I am not getting any way to obtain access token programmatically without any user interaction(no UI at all). The purpose is to list all files of all users under enterprise Box.Net account. The flow I am expecting is like service account of google Drive.


回答1:


This isn't possible with Box's current implementation of OAuth 2, though we're working on supporting additional grant types.




回答2:


If you are using only one box enterprise account then you can always create your access token and refresh token just once using browser and then programmatically refresh your access token before 14 days using cron on server side.



来源:https://stackoverflow.com/questions/16398493/how-to-authenticate-box-net-programmatically

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