Google 登录 api 重定向 uri 不匹配

问题描述 投票:0回答:1

这让我发疯。该应用程序作为 localhost 和 http 每天都运行整整一年。 然后我在一个知名的 CA 注册了一个 https,在 SSL 实验室获得了完美的 A 分数,还在 Google 注册了网络,然后我需要将其添加到 uri 重定向

Access blocked: This app’s request is invalid
[email protected]
You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of this app, see error details.
Error 400: redirect_uri_mismatch    

If you're the app developer, register the redirect URI in the Google Cloud Console.
https://myweb.com/accounts/google/login/callback/

当然我已经添加了httpS

我正在使用 AllAuth + Google OAuth 2.0

google-signin
1个回答
0
投票

我创建了一个新项目。 旧的删了。 我重新启动了主管 一切又恢复正常了。 这是一种你永远不知道为什么的事情,但它确实有效。也许升级到生产 https 是另一个级别,并且不适用于旧项目,但是......我们在职业生涯中经历了多少挫折......?编程变得如此复杂,因为有数以百万计的应用程序,您无法控制它们的工作方式,只能听天由命。

© www.soinside.com 2019 - 2024. All rights reserved.