我正在Zapier遗留的基于浏览器的开发平台上创建一个自定义的私有应用程序。Google api需要OAuth 2,我可以使用谷歌在创建用户客户端后提供的凭据对其进行正确配置(通过此链接上的第一个按钮):
https://developers.google.com/identity/sign-in/web/sign-in#before
它生成所需的凭据,如下所示:
{
"web": {
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"client_id": "1234567890example.apps.googleusercontent.com",
"client_secret": "1234567890abcexample",
"project_id": "abc123example",
"javascript_origins": [
"https://zapier.com"
]
}
}我的问题是Zapier需要定期刷新访问令牌。它可以选择以这种方式设置这个额外的字段:
“刷新令牌URL (可选),我们在此发布以刷新access_token。”
如你所见,谷歌提供了我需要的一切(client_id、client_secret、token_url、auth_url等)。但不是refresh_token_url。
有没有一个google刷新令牌url,我可以在Zapier的这个字段中插入,来解决这个问题?
发布于 2019-03-23 05:49:33
我相信你可以重用token_uri,基于我见过的其他做同样事情的项目。你试过吗?
https://stackoverflow.com/questions/55306690
复制相似问题