有没有一种方法可以使用DropBox进行身份验证而无需重新授权? [英] Is there a way to use DropBox for authentication without re-authorization?

查看:145
本文介绍了有没有一种方法可以使用DropBox进行身份验证而无需重新授权?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个DropBox应用-如果未通过DropBox验证用户身份,则该应用无用。因此,在我的应用程序中进行单独的帐户管理(使用DropBox记帐就足够了)是没有用的。

I'm developing a DropBox app - one that has no use if the user is not authenticated by DropBox. Therefore it would be useless to have separate account management in my app, (using the DropBox accounting should suffice).

DropBox建议的oauth序列同时进行两种身份验证(具有用户使用她的DropBox凭据登录)和授权(已批准她的应用访问她的数据库帐户)。这对于用户首次登录我的应用程序来说是一件好事。但是,一旦我的应用程序获得批准并安装在用户帐户上,我就不想在她每次登录时都提示她是否允许我的应用程序访问。是否可以跳过授权页面?

The oauth sequence suggested by DropBox does both authentication (having the user sign in with her DropBox credentials), and authorization (having her approve my app to access her DB account). This is good for the first time the user signs-in to my app. But once my app is approved and "installed" on the user's account, I don't want her to be prompted whether to allow my app access, every time she logs in. Is there a way to skip the authorization page?

推荐答案

已经过了一段时间,但是现在有一种方法可以永久访问Dropbox API。
您需要从应用程序设置生成访问令牌并使用它。
这是Dropbox所说的:

Some time passed, but now there is a way to allow permanent access to dropbox API. You need to generate access token from the application settings and use it. Here is what dropbox says:


通过生成访问令牌,您将能够为自己的帐户进行API调用无需经过授权流程。要获取其他用户的访问令牌,请使用标准的OAuth流。

By generating an access token, you will be able to make API calls for your own account without going through the authorization flow. To obtain access tokens for other users, use the standard OAuth flow.

这篇关于有没有一种方法可以使用DropBox进行身份验证而无需重新授权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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