简体   繁体   English

Dropbox - Android - 如何在用户不知道他们使用Dropbox的情况下登录Dropbox?

[英]Dropbox - Android - How to login to dropbox without the user knowing they are using Dropbox?

I am trying to develop an application that uses some sort of cloud storage. 我正在尝试开发一个使用某种云存储的应用程序。 I thought dropbox would be perfect to use. 我认为Dropbox非常适合使用。 I already have my app key and app secret. 我已经拥有了我的应用密钥和应用秘密。

In the example that they give for the DBRoulette, you go through an external GUI to login to Dropbox. 在他们为DBRoulette提供的示例中,您将通过外部GUI登录Dropbox。 For my app, I just want to log in behind the scenes with not having the user know that the cloud portion is Dropbox 对于我的应用程序,我只想在幕后登录而不让用户知道云部分是Dropbox

Any suggestions to make this happen would be appreciated. 任何有关实现这一目标的建议将不胜感激。

This is simply not possible, at least not with the current public APIs that DropBox provides. 这根本不可能,至少不能使用DropBox提供的当前公共API。 I doubt that this will change any time soon, and that's a good thing. 我怀疑这会很快改变,这是一件好事。

Dropbox forces you to use Oauth for authentication and authorization and they have good reasons for that. Dropbox强制您使用Oauth进行身份验证和授权,他们有充分的理由。

Most service providers that offer SDKs to allow third party apps to integrate with them use Oauth (Twitter,Dropbox,Linkedin,Google,SalesForce,.....). 大多数提供SDK以允许第三方应用程序与其集成的服务提供商使用Oauth(Twitter,Dropbox,Linkedin,Google,SalesForce,.....)。

An important part is that the user always needs to authorize the application to access the users data on their behalf. 一个重要的部分是用户总是需要授权应用程序代表他们访问用户数据。

This is always a manual step (in most cases only performed once) that the end-user needs to do. 这始终是最终用户需要执行的手动步骤(在大多数情况下仅执行一次)。 He always needs to click a button somewhere to explicitly give his/her permission. 他总是需要点击某处的按钮才能明确表示他/她的许可。

It cannot be done silently in the background, just like you cannot silently send SMS text messages in Android without forcing the user to grant permission to do that. 它不能在后台静默完成,就像你不能在Android中静默发送短信而不强迫用户授予这样做的权限。

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

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