无法看到客户编号 [英] Unable to see client id

查看:126
本文介绍了无法看到客户编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正尝试使用






您可以在 Google API概述中看到客户端ID。

>

在左上角,选择要获取其客户端ID的项目,然后在 OAuth 2.0客户端ID 部分下,看所有ID都已关联到您的项目。



Google应该已经为您生成了一个名为 Google App上的新操作的文件。我也有一些较旧的项目,其中有多个键,并且只能与另一个键一起使用。



此功能最近已更新,看来文档尚未更新。


We are trying to setup the account linking process using Google SignIn.

In this, it asks us to copy the Client Id at Step 5:

  1. Open Client Information and take note of the value of Client ID issued by Google to your Actions.

However, I don't find the Client ID field in the Account Linking section at all.

Is there an alternative way to generate this? I tried using the console in developers.google.com and created an Oauth 2.0 Client Id of Web Application type, but using the Client ID generated this way, gives the following error (when used with DialogFlow):

Error: Wrong recipient, payload audience != requiredAudience
    at OAuth2Client.verifySignedJwtWithCerts (/srv/node_modules/actions-on-google/node_modules/google-auth-library/build/src/auth/oauth2client.js:696:23)
    at OAuth2Client.<anonymous> (/srv/node_modules/actions-on-google/node_modules/google-auth-library/build/src/auth/oauth2client.js:514:38)
    at step (/srv/node_modules/actions-on-google/node_modules/google-auth-library/build/src/auth/oauth2client.js:57:23)
    at Object.next (/srv/node_modules/actions-on-google/node_modules/google-auth-library/build/src/auth/oauth2client.js:38:53)
    at fulfilled (/srv/node_modules/actions-on-google/node_modules/google-auth-library/build/src/auth/oauth2client.js:29:58)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:229:7)

The documentation seems to be outdated and there is no information anywhere on how to get the Client Id

解决方案

Update October 2019

It seems that Google has updated this, you can see your client ID again under the google Sign-in option in your Google Project.


You can see the client ID in the Google APIs overview.

In the top left, select the project for which you want to get the client ID and then under the OAuth 2.0 Client IDs section you should be able to see all ID's connected to your project.

Google should have already generated one for you named "New Actions On Google App". I've also had older projects where it had more than one key and it would only work with the other key.

This has been updated recently and it seems that the documentation isn't up to date yet.

这篇关于无法看到客户编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆