Google OAuth 2.0 redirect_uri_mismatch错误 [英] Google OAuth 2.0 redirect_uri_mismatch error

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

问题描述


  1. 我在Google中创建了Google OAuth 2.0 ClientID 秘密开发人员控制台

之后我在Google OAuth游乐场进行了测试(​​ https:/ /developers.google.com/oauthplayground )。
和已注册的 ClientID 秘密已在上面创建并应用于Google OAuth 2.0游乐场设置菜单。

After that I tested in Google OAuth playground (https://developers.google.com/oauthplayground). and registered ClientID and secret already created above and applied to Google OAuth 2.0 playground setting menu.

有人说创建 ClientID / 秘密他们需要一些时间进行测试。所以两天后我尝试在相同条件下测试,但错误相同 redirect_uri_mismatch

Some people say that after creating ClientID/secret they need some time for testing. So after two days I tried to test in the same conditions but the error is same redirect_uri_mismatch.

我该如何解决这个问题?

How can I solve this?

推荐答案

只需要一个'/'你的uri结尾并且你的代码末尾没有相同的'/'会把它扔掉。

As little as having a '/' at the end of your uri and not having the same '/' at the end in your code will throw it off.

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

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