Appengine Cloud Endpoints with new Google+ sign-in

好久不见. 提交于 2019-12-03 14:41:19

The Google+ sign-in button has a "scopes" attribute that you can list additional scopes that you would like to request. You can list the userinfo.email scope there as well as any Cloud specific ones.

If you need to retrieve a user's email address, you can add the userinfo.email scope within that attribute and then use the appropriate REST end point to retrieve the address.

Additionally, to retrieve email addresses in mobile apps, see:

The userinfo.email scope is in addition to the plus.login scope. In fact, plus.login explicitly doesn't give access to the user's email address.

Although you'll be asking for "another permission", this is all done at the same time in a single OAuth screen, so all the permissions will be listed at once. The user isn't presented with screen after screen of permissions, the request for their email will be listed along with the requests for the plus.login scope information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!