OAuth的无的WebView在Android? [英] oAuth without WebView on Android?

查看:151
本文介绍了OAuth的无的WebView在Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有实现,而不在Android上推出实际的浏览器,甚至是网页视图的OAuth流的方法吗?

Is there a way to implement oAuth flow without actually launching browser or even a webview on android?

我想表明的是,询问用户凭据,然后本地弹出其提供给OAuth的提供商。

What I want to show is a native Popup which asks user credentials and then supply it to oAuth provider.

推荐答案

严格地说没有,使用OAuth的主要思想是,你不应该处理任何方式用户的凭据。

Strictly speaking no, the main idea with OAuth is that you should never handle the user's credentials in any way.

不过,这取决于供应商。 Twitter的例子​​使用自己发明的XAUTH ,你换来发送用户名和密码的访问令牌。微博只允许这对于可以激发这种需求非常好,虽然应用

But it depends on the provider. Twitter for example uses their own invention xAuth where you send the username and password in exchange for an access token. Twitter only allows this for applications that can motivate that need very well though.

于是用API供应商是否以某种方式是可行的。

So check with the API provider if it is possible in some way.

这篇关于OAuth的无的WebView在Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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