首页 > 解决方案 > Nest api 连接问题

问题描述

我已经尝试了说明中的所有步骤,但是当它应该重定向到 google.com 时,总是在 #5 处出现错误。 https://developers.google.com/nest/device-access/authorize#link_your_account

错误:

授权错误 错误 400:redirect_uri_mismatch 请求中的重定向 URI https://www.google.com与授权给 OAuth 客户端的 URI 不匹配。要更新授权的重定向 URI,请访问:https://console.developers.google.com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}

我确保我有正确的数字 - 网址中没有空格并将其放在记事本中并删除了所有返回,因此它是一行文本。

有任何想法吗?

标签: nest-api

解决方案


What do you have listed in the Authorized Redirect URIs for your OAuth client in GCP, and what is the exact PCM URL you used? You shouldn't get this error if the redirect_uri and client_id parameters in the PCM URL matches what you have in GCP for the client.


推荐阅读