简体   繁体   中英

Upload to Dropxbox without redirect to Web

We have a background.Net service that should upload files to our account to Dropbox. OAuth2 is not acceptable since there is no way to handle redirect to Dropbox login page and callback.

在此处输入图像描述

There is a way to generate token in Dropbox App Console. It works, but token is expiring every day.

Is there any way to get permanent token? Or any other way to obtain token compeltely from code without Dropbox login page.

It is not possible full automate the process of retrieving an access token and optional refresh token. This needs to be done manually by the user at least once. If your app needs to maintain long-term access without the user manually re-authorizing it repeatedly, the app should request "offline" access so that it gets a refresh token. The refresh token doesn't expire and can be stored and used repeatedly to get new short-lived access tokens whenever needed, without the user manually reauthorizing the app.

https://developers.dropbox.com/oauth-guide

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM