- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我从GitHub克隆了Youtube API示例:
https://github.com/youtube/api-samples.git
并创建了以下OAuth 2客户端ID:
我下载了JSON并将其放入client-secrets.json
中。
但是,当我执行示例代码时,我得到以下信息:
400. That’s an error.
Error: redirect_uri_mismatch
The redirect URI in the request, http://127.0.0.1:55015/authorize/, does not
match the ones authorized for the OAuth client.
最佳答案
您是否在授权过程的代码中设置了重定向uri?
例如,在api-samples/php/my_uploads.php中:
$redirect = filter_var('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'],
FILTER_SANITIZE_URL);
$client->setRedirectUri($redirect);
$redirect
更改为
https://yourredirecturi.com/callback
关于.net - Google API YouTube示例-错误:redirect_uri_mismatch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44579054/
我正在使用 oauth2 gem 进行谷歌登录验证。我的代码看起来像 omniauth.rb OmniAuth.config.logger = Rails.logger require "omniau
我在 Visual Studio Express 2012 for Web 中有一个网站。 当我尝试以下代码时,我不断收到来自 google 的错误,提示开发者控制台中列出的重定向 uri 不匹配:
无法登录到 firebase CLI。 firebase login 在浏览器中生成如下错误提示: The redirect URI in the request, http://localhost:
我们在尝试从 Google 获取 oAuth token 时遇到“redirect_uri_mismatch”错误: [client 127.0.0.1:49892] {\n "error" : "
我正在尝试使用 socialite 登录 google,我的 facebook 登录工作正常,所以我的 google 应用程序出现问题,任何帮助!!! 'google' => [ 'clie
我已经在我的应用程序中集成了用于登录的google ios SDK,并能够使用该SDK生成授权代码。尝试在服务器端使用相同的授权代码时,我不断收到redirect_uri_mismatch错误。在Go
我正在尝试遵循本指南:Using OAuth 2.0 for Installed Applications 我通过了第一部分,用户可以授权我的应用访问他们的 Google Drive。用户授予权限后,
尝试在我的网站上实现 hybridauth 2.4,除了 config.php 之外的所有代码都是开箱即用的,但我在使用 Google+ 时遇到了问题。我已经尝试了一切,并且正在慢慢失去它。 400
尝试使用 github api 时,我不断收到相同的 OAuth 错误。有时它会消失,但大多数时候它会留下。我曾尝试重置我的 key ,撤销所有 token ,清除 safari 缓存但没有运气。这是
我正在尝试通过分析 API 从 R 连接到谷歌分析。以下是我的代码。 library(RGoogleAnalytics) oauth_token <- Auth(client.id = "client
URL似乎正确(昨天最后更新了它们): 这些文件也是: omniauth.rb: provider :google_oauth2, 'MY_CLIENT_ID.apps.googleusercon
我关注了这个basic tutorial ,但我得到: Eroare:redirect_uri_mismatchThe redirect URI in the request: urn:ietf:wg
我在具有Google Play排行榜支持的Unity中创建了一个应用。我可以轻松地使其在Android上运行,然后我也转向OSX来为iPhone构建它。 首先我遇到一个问题,苹果不接受任何带有'_'字
我正在尝试在我的系统中实现一次性代码登录流程。应用包含两部分:1)向Google+请求一次性授权码的Android应用2)Rails 服务器在请求 header 中从 android 应用程序接收一次
我想编辑在 Google API 控制台中注册的用于 Google+ 登录的包 ID。 回答这个 question告诉我如何做到这一点,但我没有看到 API Access 下的 Client id 和
我正在尝试让 google plus 身份验证适用于网络应用程序,但不断出现 redirect_uri_mismatch 错误。我检查并重新检查了我在代码和谷歌开发设置中是否有匹配的重定向 url。
全部, 我在尝试通过 google 进行身份验证时收到 400 redirect_url_mismatch 错误。我通过 django 应用程序使用 python-socal-auth 来实现这个过程
我们根据此文档构建我们的 Web 应用程序并与 Google OAuth2 集成 Google Identity Services JavaScript SDK 我们想使用“popup”模式,但是当试
我遵循了这个 Gmail API Python 快速入门教程: https://developers.google.com/gmail/api/quickstart/python 我按照说明在 API
我正在尝试连接到 google drive,为此我正在使用 python pydrive 库。我已经按照文档编写了一个片段来连接谷歌驱动器。但我收到一个错误 错误:redirect_uri_misma
我是一名优秀的程序员,十分优秀!