Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appengine Cloud Endpoints with new Google+ sign-in

How does the new google+ sign-in apis fit into making authenticated calls to Cloud Endpoints. To use OAuth with endpoints the app must request permission for the 'https://www.googleapis.com/auth/userinfo.email' scope at a minimum. Will using the Google+ sign-in button grant this scope? Or am I going to have to ask my users for yet another permission??

like image 796
Patrick Avatar asked Feb 27 '13 04:02

Patrick


1 Answers

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:

  • Android
  • iOS.
like image 145
BrettJ Avatar answered Nov 19 '22 00:11

BrettJ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!