calendar - google oauth2 刷新 token 限制

标签 calendar oauth-2.0 google-api google-oauth

我正在开发一个 Web 应用程序,它需要使用 OAuth2 访问 100 个或更多不同的 Google 日历。所有日历都在其各自用户的不同帐户中。我从 Google 看到了这段话:

"Note that there are limits on the number of refresh tokens that will be issued; one limit per client/user combination, and another per user across all clients. You should save refresh tokens in long-term storage and continue to use them as long as they remain valid. If your application requests too many refresh tokens, it may run into these limits, in which case older refresh tokens will stop working."

按照建议,我的应用程序使用访问 token ,然后将刷新 token 存储在数据库中供以后使用。我想知道我是否会达到我的刷新 token 可以使用的日历数量的限制?在达到限制后刷新 token 停止工作之前是否有人遇到过困难。该段提到了两个限制,但我不确定我的应用程序是否会受到影响,因为每个日历都是不同的用户。我不确定 Google 所说的“以及所有客户中每个用户的另一个限制”是什么意思?

任何有这方面经验或知识的人请帮忙。

提前谢谢你。

最佳答案

这两个限制都不适用于您的场景,因此您应该没有任何问题。

“每个客户/用户组合的一个限制”是 25,因此您不能为任何给定用户获得超过 25 个刷新 token 。但您只需要一个,所以没关系。

“所有客户的每个用户”是说:-

  1. 一个用户只能授权一定数量的项目,但我猜这是一个相当大的数字。
  2. 意思是每个项目允许的客户数量有限制,但同样,您只需要一个。

关于calendar - google oauth2 刷新 token 限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21892172/

相关文章:

java - 如何根据希伯来日历中的总天数差计算月份

java - 基于 Java/Groovy 时区的日期时间转换

javascript - 如何使用 HTML 和 Javascript 创建动态的每周计划?

ios - 使用 iOS 客户端 ID 时,Google API 无法进行身份验证

c# - 将任意 ID 附加到 Google 联系地址

ios - EKCalendar 中的 "full calendar sync"到底是什么?

php - Google Analytics OAuth2 刷新 token 限制

python - Google Drive API 下载文件 - python - 没有下载文件

google-maps - Google Maps v3 map.getBounds().containsLatLng 不是函数

node.js - 如何刷新 Google Analytics Reporting API v3 的访问 token