0

我编写了一个 GSuite 插件,它使用https://developers.google.com/docs/api/reference/rest/v1/documents进行 Google Rest API 调用。要进行这些调用,我的 Add On 需要使用正确的范围向 Google 进行身份验证。所以我采用了我习惯的常用网络应用程序代码:

gapi.auth2.getAuthInstance().signIn()

在那之前

gapi.client.init()

使用 API 密钥和客户端 ID 调用。客户端 ID 与https://console.developers.google.com/中的一个项目相关联——我们称之为它Mike Add On。我必须将托管我的插件的 uri 配置为授权来源 - 这类似于

https://n-5eu5f2kfjyztq5mypu757655tecik5nd52mv7sztq-0lu-script.googleusercontent.com

当我的插件用户登录时,我希望项目名称 ( Mike Add On) 出现在 OAuth 同意屏幕中。但是我得到了

Choose an account to continue to googleusercontent.com

为什么googleusercontent.com作为应用名称出现,而不是与客户端 ID 关联的名称?

4

0 回答 0