作者F23ko ( http://f23ko.com )
看板Web_Design
标题[问题] Google API OAuth2
时间Sat Dec 7 11:42:15 2013
目前在尝试的时候,一直遇到这样的错误
我是依照这个网页的范例去试的
https://developers.google.com/accounts/docs/OAuth2WebServer
用来测试的页面如下
http://f23ko.com/oauth2/oauth2.html
结果:
错误:redirect_uri_mismatch
The redirect URI in the request:
http://f23ko.com
did not match a registered redirect URI
要求详情
cookie_policy_enforce=false
scope=
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
response_type=code
access_type=online
redirect_uri=
http://f23ko.com
state=STD_TEST
display=page
client_id=131......tent.com
然後,我也已经把把这个网址
加到Google Cloud Console的通知端点去了
http://i.imgur.com/5d4Wz22.png
不知道为什麽会跳出错误讯息
我有哪里搞错了吗?
--
F23缩网址
http://f23.tw
最
邪恶的缩网址网站
因为可以偷看噗浪上的朋友谁上线了
http://f23ko.com/676
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.38.68.226
1F:推 duck10704:有遇到一样问题 推一下 12/07 12:10
3F:→ danny8376:redirect这部分有填吗? 我是因为用JS所以不需要啦www 12/07 16:23
4F:→ F23ko:YA~ 成功了!感谢2楼 12/07 16:42