Google OAuth2 授权 OAuth 令牌错误:redirect_uri_mismatch [英] Google OAuth2 Authorizing OAuth token error: redirect_uri_mismatch

查看:37
本文介绍了Google OAuth2 授权 OAuth 令牌错误:redirect_uri_mismatch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am Creating and Authorizing an OAuth Token according to this webpage: https://code.google.com/p/google-mail-oauth2-tools/wiki/OAuth2DotPyRunThrough

但我收到了这个错误:redirect_uri_mismatch.

But I got this error: 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

I thought this might be helpful: Google OAuth 2 authorization - Error: redirect_uri_mismatch

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

But when I try to register the redirect url to my console, I was told that the url is invalid.

推荐答案

redirect_uri (urn:ietf:wg:oauth:2.0:oob) 仅适用于那些为 已安装的应用程序.您可以转到您的控制台并创建此类型的新客户端 ID.

The redirect_uri (urn:ietf:wg:oauth:2.0:oob) is only applicable to those Google client ids that have been generated for installed applications. You can go to your console and create a new client id of this type.

这篇关于Google OAuth2 授权 OAuth 令牌错误:redirect_uri_mismatch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆