Documentation
¶
Overview ¶
Package user provides a client for App Engine's user authentication service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAdmin ¶
IsAdmin returns true if the current user is signed in and is currently registered as an administrator of the application.
func LoginURL ¶
LoginURL returns a URL that, when visited, prompts the user to sign in, then redirects the user to the URL specified by 'dest'.
func LoginURLFederated ¶
LoginURLFederated is like LoginURL but accepts a user's OpenID identifier.
Types ¶
type User ¶
type User struct { Email string AuthDomain string // 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 }
User represents a user of the application.
Its fields are not validated. A User whose email address does not correspond to a valid Google account can be stored in the datastore, but will never match a real user.
Click to show internal directories.
Click to hide internal directories.