问题描述
我一直在研究Google身份验证API(AuthSub)...我的问题是,如何在身份验证通过后获取用户的帐户信息(至少是他们的Gmail地址)?
因为目前我从认证过程中获得的所有信息都是令牌,可以访问我在示波器中指定的任何Google服务,但是没有简单的方法据我所知,甚至可以获得用户的登录ID(Gmail地址)...
如果是这样,Google服务允许我访问用户的信息?
使用Google AppEngine GData服务,您可以请求用户为您提供访问权限到他们的Google Mail,日历,Picasa等。请查看。
I've been studying the Google authentication API (AuthSub)... My question is, how do I get the user's account information (at least their Gmail address) after the authentication has passed?
Because currently, all I get back from the authentication process is a token granting me access to which ever Google service I have specified in the scope, but there's no easy way to even get the user's login id (Gmail address) as far as I can tell...
If so, what Google service allows me to access the user's information?
Using the Google AppEngine GData services, you can request the user to give you access to their Google Mail, Calendar, Picasa, etc. Check it out here.
这篇关于Google身份验证API:如何获取用户的Gmail地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!