I am building a web app with go
and GAE
. I would like to use Google Accounts for authentication. The appengine/user
package contains a type, User
. I was planning on using ID
property of User
as the ancestor to descendent entities in the Datastore
. However I'm confused by the comments in this section of documentation:
type User struct {
Email string
AuthDomain string
Admin bool
// ID is the unique permanent ID of the user.
// It is populated if the Email is associated
// with a Google account, or empty otherwise.
ID string
FederatedIdentity string
FederatedProvider string
}
Source: https://cloud.google.com/appengine/docs/go/users/reference#User
Under what circumstances might an email not be associated with a google account and therefore ID
be empty?
I'm very new to go
and GAE
so please excuse my ignorance.