【问题标题】:iOS Parse User Information from Google + OAuth DataiOS 从 Google + OAuth 数据中解析用户信息
【发布时间】:2012-10-01 12:54:42
【问题描述】:

我正在尝试为 iOS 使用 Google 的 OAuth 服务,并将以下范围传递给身份验证机制:

据我所知,登录工作正常(系统提示我输入 Google 凭据);我可以从GTMOAuth2Authentication 对象中解析出我的电子邮件,但我的问题是,我如何从“userinfo.profile”中获取数据,即姓名、性别等。

谢谢

【问题讨论】:

    标签: ios google-oauth


    【解决方案1】:

    您可以使用访问令牌通过调用 UserInfo 端点来获取用户的基本配置文件信息。

    https://developers.google.com/accounts/docs/OAuth2Login#userinfocall

    【讨论】:

      猜你喜欢
      • 2013-01-27
      • 1970-01-01
      • 2012-12-10
      • 2017-12-30
      • 2021-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多