UserService
class UserService (View source)
Methods
Computes the login URL for redirection.
Computes the logout URL for this request and specified destination URL, for both federated login App and Google Accounts App.
Get the current logged in user.
Return true if the user making this request is an admin for this application, false otherwise.
Details
at line 48
static string
createLoginURL(string $destination_url = null, string $federated_identity = null)
Computes the login URL for redirection.
at line 83
static string
createLogoutURL(string $destination_url)
Computes the logout URL for this request and specified destination URL, for both federated login App and Google Accounts App.
at line 151
static boolean
isCurrentUserAdmin()
Return true if the user making this request is an admin for this application, false otherwise.
We specifically make this a separate function, and not a member function of the User class, because admin status is not persisted in the datastore. It only exists for the user making this request right now.