问题
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