Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 为什么对托管虚拟机禁用OAuth?_Java_Google App Engine_Oauth_Google Cloud Endpoints - Fatal编程技术网

Java 为什么对托管虚拟机禁用OAuth?

Java 为什么对托管虚拟机禁用OAuth?,java,google-app-engine,oauth,google-cloud-endpoints,Java,Google App Engine,Oauth,Google Cloud Endpoints,我在托管虚拟机上使用谷歌AppEngine和谷歌云端点 我有非常简单的服务,像这样: public List<DBObject> getCustomers(User user) throws OAuthRequestException { authService.check(user); DB db = databaseClient.getDb(); List<DBObject> customers = db.getCollection(Custo

我在托管虚拟机上使用谷歌AppEngine和谷歌云端点

我有非常简单的服务,像这样:

public List<DBObject> getCustomers(User user) throws OAuthRequestException {
    authService.check(user);
    DB db = databaseClient.getDb();
    List<DBObject> customers = db.getCollection(Customer.COLLECTION).find().toArray();
    return customers;
}
和日志:

com.google.apphosting.vmruntime.VmApiProxyDelegate convertApiResponseRpcErrorToException: 
RPC failed, API=user.GetOAuthUser : FEATURE_DISABLED : This feature is disabled for Managed VMs.
有没有办法避免这个错误?为什么在托管虚拟机上禁止OAuth

我肯定不能从托管虚拟机切换,但我还需要OAuth来正常工作

根据谷歌的说法,托管虚拟机仍处于Beta版,因此“user.GetOAuthUser:FEATURE_DISABLED”错误将在托管虚拟机的“未来版本”或“完整版本”中修复

com.google.apphosting.vmruntime.VmApiProxyDelegate convertApiResponseRpcErrorToException: 
RPC failed, API=user.GetOAuthUser : FEATURE_DISABLED : This feature is disabled for Managed VMs.