谷歌驱动器:redirect_uri_mismatch [英] Google drive : redirect_uri_mismatch
问题描述
我遵循了这个基础教程,但我明白了:
<块引用>Eroare:redirect_uri_mismatch请求中的重定向 URI:urn:ietf:wg:oauth:2.0:oob 与注册的重定向 URI 不匹配在我的谷歌搜索中,我了解到我在 API 控制台中所做的某些设置有问题.我启用了 Drive API 并在表 API Access 中进行了一些设置.我获取了客户端 ID 和客户端密码,并将这两个值放在客户端源中,但我不知道在重定向 URI 中放置什么.
什么应该包含重定向 URI?
URI urn:ietf:wg:oauth:2.0:oob
是用于识别浏览器外应用程序的特殊 URI,即非网络应用程序(桌面、移动、命令行等).
在 API 控制台中创建凭据时,请确保选择Installed Application"作为应用程序类型,重定向 URI 将自动设置为 urn:ietf:wg:oauth:2.0:oob
并在发出请求时防止redirect_uri_mismatch".
I followed this basic tutorial, but I get:
Eroare:redirect_uri_mismatch The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a registered redirect URI
In my googlings I understand there is something wrong in some settings I made in API Console. I enabled Drive API and I made some settings in table API Access. I take the Client ID and client secret and I put these 2 values in client source but I do not know what to put in the Redirect URI.
What should contain the Redirect URIs?
The URI urn:ietf:wg:oauth:2.0:oob
is a special URI used to identify out-of-browser applications, i.e. non-web applications (desktop, mobile, command line, etc.).
When you create the credentials in the APIs Console, make sure you select "Installed Application" as the application type and the redirect URI will automatically be set as urn:ietf:wg:oauth:2.0:oob
and prevent the "redirect_uri_mismatch" when making a request.
这篇关于谷歌驱动器:redirect_uri_mismatch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!