Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.


Stay organized with collections Save and categorize content based on your preferences.

Class LocalUserService

  • java.lang.Object
    • AbstractLocalRpcService

  • public final class LocalUserService
    extends AbstractLocalRpcService
    creates URLs that point to LocalLoginServlet and LocalLogoutServlet when used within the Development AppServer environment. There is a known discrepancy between this implementation and the production implementation. The production version will throw a ApiProxy.ApplicationException with applicationError set to UserServicePb.UserServiceError.ErrorCode#REDIRECT_URL_TOO_LONG when the url passed to createLoginURL(Status, CreateLoginURLRequest) or createLogoutURL(Status, CreateLogoutURLRequest) is too long. This implementation does not perform this check and therefore never returns this error.
    • Field Detail


        public static final java.lang.String OAUTH_CONSUMER_KEY_PROPERTY
        See Also:
        Constant Field Values

        public static final java.lang.String OAUTH_EMAIL_PROPERTY
        See Also:
        Constant Field Values

        public static final java.lang.String OAUTH_USER_ID_PROPERTY
        See Also:
        Constant Field Values

        public static final java.lang.String OAUTH_AUTH_DOMAIN_PROPERTY
        See Also:
        Constant Field Values

        public static final java.lang.String OAUTH_IS_ADMIN_PROPERTY
        See Also:
        Constant Field Values
      • PACKAGE

        public static final java.lang.String PACKAGE
        The package name for this service.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LocalUserService

        public LocalUserService()
    • Method Detail

      • createLoginURL

        public CreateLoginURLResponse createLoginURL(Status status,
                                                     CreateLoginURLRequest request)
      • createLogoutURL

        public CreateLogoutURLResponse createLogoutURL(Status status,
                                                       CreateLogoutURLRequest request)
      • getOAuthUser

        public GetOAuthUserResponse getOAuthUser(Status status,
                                                 GetOAuthUserRequest request)
      • getPackage

        public java.lang.String getPackage()
      • init

        public void init(LocalServiceContext context,
                         java.util.Map<java.lang.String,java.lang.String> properties)
      • start

        public void start()
      • stop

        public void stop()