Google Cloud Endpoints 是否支持增量身份验证?

Does Google Cloud Endpoints support incremental authentication?

我找到了使用 Google 2.0 登录按钮时添加增量授权的文档 here

但是 Google Cloud Endpoints 使用记录的方法 here, with a tutorial for set up found here

使用完全不同的登录流程

gapi.auth.authorize(端点架构)和 gapi.auth2.init 方法看起来相当不同。然而,gapi.auth2.init 方法有一个记录在案的实现增量授权的方法。使用内置身份验证模式时,Google Cloud Endpoints 可以做到这一点吗?

无论您使用何种身份验证方法(gapi.authgapi.auth2),JS 客户端库都会处理对 Google 云端点调用的身份验证。因此,只要您通过 gapi.client.yourApi 方法调用端点,一切都应该有效。

唯一重要的是,email 范围在调用需要身份验证的方法之前已获得授权,因为 Google Cloud Endpoints 需要访问用户的电子邮件地址。