Tag: 谷歌应用程序

在NodeJS中处理服务器端Google域身份validation

我最近开始看NodeJS框架,因为我想从Java / JSP切换。 现在为了validation用户身份,我在一个运行在Google App Engine环境中的JSP页面中使用了一个非常直接的代码。 UserService userService = UserServiceFactory.getUserService(); if (request.getUserPrincipal() == null) { // redirect user to login page if he's not logged in // notice that through Google App Engine settings I enabled only a specific domain to login against my application response.sendRedirect(userService.createLoginURL("/")); } else { // render page if he's logged […]

如何在使用服务帐户上传时修复Google云端硬盘的存储空间不足问题

如果您使用的是Google Apps for Work(也称为G-Suite),并通过云端硬盘API将file upload到Google云端硬盘,那么您最终会看到一条如下所示的错误消息: Error: The user's Drive storage quota has been exceeded. 阅读下面了解为什么发生这种情况,以及如何解决这个问题