将Dropbox与核心API结合使用,但避免登录页面 [英] Use of dropbox with core APIs, but avoiding login page

查看:92
本文介绍了将Dropbox与核心API结合使用,但避免登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Core Dropbox API将Dropbox用于我的文件共享应用程序。我正在使用OAuth 2.0 API进行身份验证(隐式授予方法)。
问题是,为了获取访问令牌,我需要登录到Dropbox帐户,否则它会将我重定向到Dropbox登录页面。我不希望我的用户输入登录凭据。

I want to use Dropbox for my file share application, using Core Dropbox APIs. I am using OAuth 2.0 APIs for authentication (Implicit Grant Method). The issue is, In order to obtain the access token, I need to be logged-in to dropbox account or it redirects me to Dropbox login page. I don't want my users to enter the login crediantials.

有什么方法可以避免登录过程,直接获得访问令牌吗?
或者我可以在后端使用一些登录api进行登录,而无需用户反复操作?

Is there any way to avoid login process, and directly get access token?? Or Alternatively can I do login using some login api in backend, without user iteraction??

在这里,我考虑使用一个Dropbox帐户,该帐户的所有必需的凭据

here I am considering a single Dropbox account, whose all necessary crediantials are with me.

谢谢。

推荐答案

将可能的解决方案放入我在这里的问题是:
这里的主要问题是关于在一定时间间隔内重新生成访问令牌的问题,即在没有任何用户交互的情况下,后端的东西。
在研究了Dropbox API之后,我得出结论,没有公开自动生成Access Token的API。
但是 Google云端硬盘确实提供了服务帐户,不需要用户交互。

Putting probable solution to my own question here: The main issue here was about re-generation of the Access Token at some intervals, that too without any user interaction, a backend stuff. After going through Dropbox APIs, I concluded there is no API exposed for re-generation of Access Token automatedly. But Google Drive do offer Service Account, which do not require user interaction.

这篇关于将Dropbox与核心API结合使用,但避免登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆