- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
全部,
我在尝试通过 google 进行身份验证时收到 400 redirect_url_mismatch 错误。我通过 django 应用程序使用 python-socal-auth 来实现这个过程。
一切顺利,直到我进入流程的最后阶段,我遇到了 redirect_uri_mismatch 问题。
在谷歌上,我收到了这条消息。
“请求中的重定向 URI:http://localhost:8000/something/complete/google-oauth2/与注册的重定向 URI 不匹配”
`Request Details
from_login=1
scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
response_type=code
redirect_uri=http://localhost:8000/something/complete/google-oauth2/
state=qT1RLLMa72F8NxFFubHwCVe3GgLDNcgZ
as=-55f896f3314b21af
pli=1
client_id=160177117398
authuser=0
hl=en`
下面是客户端 ID 的重定向 URI 的屏幕截图。
我做错了什么?
谢谢!
最佳答案
这里要注意的一件事是重定向 url 应该完全相同,直到最后一个尾部斜杠。就我而言,就像 http://localhot:8000/something/complete/google-oauth2这应该是
http://localhot:8000/something/complete/google-oauth2/这导致了 redirect_uri_mismatch。
还要在控制台中为重定向 url 定义 http: 和 https:,因为无论服务器中的 ssl 设置如何,社交身份验证生成的重定向 url 仍会发送 http。
关于python - Google OAuth2 redirect_uri_mismatch 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23313674/
我正在使用 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
我是一名优秀的程序员,十分优秀!