Java 为什么对托管虚拟机禁用OAuth?
我在托管虚拟机上使用谷歌AppEngine和谷歌云端点 我有非常简单的服务,像这样: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
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.