Google OAuth2 授权 OAuth 令牌错误:redirect_uri_mismatch

2024-04-01

我正在根据此网页创建并授权 OAuth 令牌:https://code.google.com/p/google-mail-oauth2-tools/wiki/OAuth2DotPyRunThrough https://code.google.com/p/google-mail-oauth2-tools/wiki/OAuth2DotPyRunThrough

但我收到此错误:redirect_uri_mismatch。

The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a registered redirect URI
from_login=1
cookie_policy_enforce=false
scope=https://mail.google.com/
response_type=code
access_type=online
redirect_uri=urn:ietf:wg:oauth:2.0:oob
as=-80019291b2cb8ed
display=page
pli=1
client_id=......
authuser=0
hl=en

我认为这可能会有所帮助:Google OAuth 2 授权 - 错误:redirect_uri_mismatch https://stackoverflow.com/questions/11485271/google-oauth-2-authorization-error-redirect-uri-mismatch

但是当我尝试将重定向 URL 注册到控制台时,我被告知该 URL 无效。


该redirect_uri(urn:ietf:wg:oauth:2.0:oob)仅适用于那些已生成的Google客户端ID已安装的应用程序。你可以去你的控制台 https://code.google.com/apis/console并创建一个该类型的新客户端 ID。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Google OAuth2 授权 OAuth 令牌错误:redirect_uri_mismatch 的相关文章

随机推荐