GitHub [CLI 应用程序] 上的 Oauth 2.0 客户端密码

Oauth 2.0 client secret on GitHub [CLI app]

我正在构建一个使用 Google 日历 API 的 CLI 应用程序,它需要 [=17] 中生成的 client_secret.json =]Google 开发控制台。我想让应用程序在 Github 上开源,所以据我所知,我必须将 client_secret.json 放在回购协议中,这样人们就可以 运行 他们终端上的应用程序而无需必须重新开始在 Google 开发控制台.

上注册的过程

有问题吗?我不存储任何关于用户的信息,我只是在用户的日历中以编程方式创建事件。

涉及日历的类似开源项目有不同的方法。
参见例如“arvind-iyer/CourseSchedulerHKUST”:

Run quickstart.py with Python 2.7 after installing all the dependencies with the command pip install -r requirements.txt.
Create a google dev app and obtain client secrets and store as client_secret.json in the directory before running quickstart.py

换句话说,每个用户都需要提出 his/her 自己的客户端机密,而不是您必须存储和共享您的机密。