【问题标题】:What are the end points to get the emailId using oauth for the google, yahoo, twitter service providers?使用 oauth 为 google、yahoo、twitter 服务提供商获取 emailId 的终点是什么?
【发布时间】:2014-03-01 11:31:29
【问题描述】:

我正在使用 google appengine java web 应用程序。我正在尝试将 OpenId 身份验证放在我的项目中。我正在使用 scribe 来实现这一点。我能够从 google、yahoo、twitter 服务提供商处获取访问令牌。

  • 获取Access Token后,需要获取当前登录的用户邮箱。我在 google 使用 OAuth2.0,在 yahoo 和 twitter 使用 OAuth1.0a。

任何建议将不胜感激。

【问题讨论】:

  • emailId 或电子邮件地址?
  • 我已经编辑了我的帖子。

标签: oauth twitter-oauth google-oauth scribe yahoo-oauth


【解决方案1】:

谷歌:

https://www.googleapis.com/oauth2/v3/userinfo?access_token={0}

推特:

  • Twitter 不公开提供用户电子邮件地址的端点。甚至没有配置文件端点。以下是Twitter's FAQs page的摘录...

如果您想要用户的电子邮件地址,则需要在您自己的应用程序和服务范围内向用户索取。 Twitter API 不提供用户的电子邮件地址作为 OAuth 令牌协商过程的一部分,也不提供其他方式来获取它。


雅虎:

【讨论】:

    猜你喜欢
    • 2017-12-21
    • 2015-06-15
    • 1970-01-01
    • 2019-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-27
    • 1970-01-01
    相关资源
    最近更新 更多