Google OAuth 2.0 redirect_uri_mismatch错误 [英] Google OAuth 2.0 redirect_uri_mismatch error
问题描述
-
我在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屋!