Package google.registry.request.auth
Class UserAuthInfo
java.lang.Object
google.registry.request.auth.UserAuthInfo
Extra information provided by the authentication mechanism about the user.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Optional
<com.google.appengine.api.users.User> User object from the AppEngine Users API.static UserAuthInfo
create
(com.google.appengine.api.users.User user, boolean isUserAdmin) static UserAuthInfo
abstract boolean
Whether the user is an admin.
-
Constructor Details
-
UserAuthInfo
public UserAuthInfo()
-
-
Method Details
-
consoleUser
-
appEngineUser
User object from the AppEngine Users API. -
isUserAdmin
public abstract boolean isUserAdmin()Whether the user is an admin.Note that, in App Engine parlance, an admin is any user who is a project owner, editor, OR viewer (as well as the specific role App Engine Admin). So even users with read-only access to the App Engine product qualify as an "admin".
-
getEmailAddress
-
getUsername
-
create
-
create
-