javascript - 如何减少 Google 登录所需的权限

标签 javascript html google-app-engine google-plus

我要在我的网站上放置一个 google 登录按钮。

当我使用来 self 的以下权限的按钮去“注册”谷歌时,要求批准:

enter image description here

但是,我不需要知道基本的个人资料信息或圈子中的人员列表。因为这可能会阻止用户注册 - 我该如何删除此请求?

有可能吗?

最佳答案

您需要修改应用使用的范围。我们的应用程序像这样存储我们需要的范围:

scopes: ['https://www.googleapis.com/auth/plus.me',
         'https://www.googleapis.com/auth/userinfo.email']

您的应用正在请求需要这些权限的范围。

注意: https://www.googleapis.com/auth/userinfo.email已折旧,请使用 https://www.googleapis.com/auth/plus.profile.emails.read相反。

关于javascript - 如何减少 Google 登录所需的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33792108/

相关文章:

javascript - 无法理解如何避免 JavaScript 中的跨源污染

javascript - 此 JavaScript 代码的 ClojureScript 等效项

html - CSS 不起作用?

javascript - 当用户向下滚动页面时,导航和下拉菜单之间的空间由于位置 : fixed

python - 使用python将大文件下载到谷歌云存储

google-app-engine - Cloud Datastore 客户端库与 App Engine Go Standard 上的 App Engine SDK

javascript - 使用BrowserRouter,如何清除注销历史记录

javascript - 我想在打印页面中仅显示选定的复选框表格列

javascript - 使用POST将JS值传递给PHP(无需提交和刷新)

python - 通过 Google Cloud SDK 更新后无法启动 App Engine 应用程序