是否可以使用Chrome Extension API确定用户个人资料?

时间:2013-06-11 14:32:37

标签: google-chrome google-chrome-extension

是否可以使用Chrome API从我的自定义扩展程序中确定在Chrome中记录了哪些用户个人资料?

谢谢!

2 个答案:

答案 0 :(得分:4)

没有Chrome-API,最好的(任何唯一的)方式是使用oAuth:
https://developers.google.com/accounts/docs/OAuth2

<强>更新

昨天,Google在Chromium博客上发布了有关Identity API的新闻 Identity API可能只适用于打包的应用程序!

  

Identity API

     

Identity API允许打包的应用程序安全地对用户进行身份验证   使用OAuth 2.0而无需用户提供用户名和   密码直接到应用程序。 Identity API支持身份验证   使用Google帐户以及第三方提供商(如GitHub)   和Foursquare。

     

Identity API还为打包应用程序提供了对Google API的安全访问   例如Google+,日历和云端硬盘。例如,Google Keep使用   Identity API用于对用户进行身份验证以及调用Google   Drive API将备注保存到云端硬盘。 Identity API使用webview   基于用户界面显示OAuth同意对话框以及Google+ API   使用范围,它允许用户控制谁可以看到他们的活动   在应用程序上。

Image

来源:http://blog.chromium.org/2013/07/richer-access-to-google-services-and.html
developer.chrome.com上的文档:https://developer.chrome.com/trunk/apps/app_identity.html

答案 1 :(得分:1)

如果可以这样做,请考虑改为编写Chrome packaged appIdentity API将为您提供所需的信息。

相关问题