Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Google+ Sign-In Compare to googleappengine.api.user signin?

The "user" submodule in Google App Engine uses "Google Account" rather than a "G+" sign-in. Are the base ID's the same? I'd like to associate their sign-ins with my own user records...

like image 556
bjorke Avatar asked Nov 03 '22 17:11

bjorke


1 Answers

If you are asking the about the ids...

Specifically:

using

user = users.get_current_user()

returns a user object and that is not what you are referring (regarding to your comment)

The user_id() is what you where reffereing to for the users api:

user = users.get_current_user()
user.user_id()

From the Docs

If the email address is associated with a Google account, user_id returns the unique permanent ID of the user, a str. This ID is always the same for the user regardless of whether the user changes her email address.

If the email address is not associated with a Google account, user_id returns None.

Now from my experience my GoogleID according to user_id() is xxx8005350796570706xx and my Google Plus profile ID is 102445631084043565507 which are totally different. I also checked this with my apps and Google + known followers and found no similarity.

like image 67
Jimmy Kane Avatar answered Nov 13 '22 12:11

Jimmy Kane