【问题标题】:Google OAuth2 - Error: redirect_uri_mismatchGoogle OAuth2 - 错误:redirect_uri_mismatch
【发布时间】:2021-06-22 09:18:47
【问题描述】:

我正在尝试运行这个项目https://github.com/googleapis/python-analytics-data 我在 Cloud Platform 中创建了新的客户端 OAuth 2.0,我有 client_secret_code 并将 uri http://localhost 添加到客户端 OAuth 设置 但我有这个错误:redirect_uri_mismatch

【问题讨论】:

  • 尝试添加 127.0.0.1 并尝试使用 https
  • 是的,我试过了,但我仍然有同样的错误
  • 请编辑您的问题并包含您的代码。

标签: python google-oauth uri google-developers-console google-analytics-data-api


【解决方案1】:

redirect_uri_mismatch

这是一个配置问题。您在谷歌云控制台中为您的项目添加的重定向 uri 必须与您的代码发送的重定向 uri 完全匹配。

最简单的解决方案是检查错误消息,它应该告诉您缺少的重定向 uri,只需在 Google 开发者控制台中添加即可。

Google OAuth2: How the fix redirect_uri_mismatch error.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-13
    • 2013-07-31
    • 1970-01-01
    • 1970-01-01
    • 2018-09-06
    • 2014-06-12
    相关资源
    最近更新 更多