nest-api - 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}
我确保我有正确的数字 - 网址中没有空格并将其放在记事本中并删除了所有返回,因此它是一行文本。
有任何想法吗?
解决方案
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.
推荐阅读
- sql - 比较逐月数据并找出 SQL 中的差异
- windows - 如何在 PowerShell 中比较两个文件夹并创建缺少的子文件夹
- python - 你能让一个对象可迭代吗?
- angular - 打开对话框的单元测试用例
- kubernetes - 如何在 pod 之间共享单个可写文件,与不可共享文件位于同一目录中(可写 configmap)
- c# - 在 WPF 应用程序中使用 INotifyPropertyChanged
- google-apps-script - 那么如何在不重新排序行的情况下在 App Script 中读取 Google Drive 文件的内容?
- docker - 无人机(Docker-Compose in docker?)
- c# - 如何从实体框架中存在数据模型的json中反序列化对象?
- android - 片段的Backstack概念