Google驱动器:redirect_uri_mismatch [英] Google drive : redirect_uri_mismatch

查看:330
本文介绍了Google驱动器:redirect_uri_mismatch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了这个基本教程,但我得到了:

< blockquote>
Eroare:redirect_uri_mismatch
请求中的重定向URI:urn:ietf:wg:oauth:2.0:oob与注册的重定向URI不匹配

在我的使用说明中,我了解在API控制台中进行的某些设置中存在错误。
我启用了Drive API,并在Table API Access中进行了一些设置。我接受客户端ID和客户端密码,并将这两个值放在客户端源代码中,但我不知道要在重定向URI中放置什么。



包含重定向URIs?

解决方案

URI urn:ietf:wg:oauth:2.0:oob 是一个特殊的URI,用于识别浏览器外的应用程序,即非web应用程序(桌面,手机,命令行等)。



当您在API控制台中创建凭证,请确保选择已安装应用程序作为应用程序类型,重定向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.

这篇关于Google驱动器:redirect_uri_mismatch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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