简体   繁体   English

使用DropBox身份验证网址动态生成身份验证令牌以访问Dropbox

[英]Generate Auth token dynamically to Access Dropbox with DropBox Auth URL

Please help me to suggest an idea to generate auth token without user needs to create the OAuth token. 请帮助我提出一种无需用户创建OAuth令牌即可生成身份验证令牌的想法。 Using DropNet I Can download file using appkey,appsecret, oauthtokn. 使用DropNet,我可以使用appkey,appsecret,oauthtokn下载文件。 Already user needs to give the appkey and apptoken , on top of that user needs to launch the URL 用户已经需要提供appkey和apptoken,该用户还需要启动URL

https://www.dropbox.com/1/oauth2/authorize?client_id=***********&response_type=token&redirect_uri=http://localhost

and Click on Allow to perform the operation copy the access_token from the redirected url. 并单击允许执行操作,从重定向的URL复制access_token。

I want the user only needs to enter the appkey and appsecret. 我希望用户只需要输入appkey和appsecret。 I want to generate access_token internally in the code either. 我也想在代码内部生成access_token。 Please suggest any way to achieve this. 请提出实现此目标的任何方法。

This can't be done. 无法做到这一点。 The app key and app secret identify an app , but not a user. 应用程序密钥和应用程序密钥识别应用程序 ,但不能识别用户。 Before you can access a user's Dropbox, that user will have to authorize your app. 在您可以访问用户的Dropbox之前,该用户必须授权您的应用。

(Also note that it's not typical for a user to provide an app key and secret... those are generally created once by the app developer.) (还请注意,用户提供应用密钥和机密并不常见……这些密钥和机密通常是由应用开发者创建的。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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