使用OAuth 2.0访问Google日历错误:redirect_uri_mismatch

时间:2013-07-09 13:07:41

标签: oauth google-api google-calendar-api google-api-java-client

我正在尝试运行Calendar App Engine Sample。但是在http://localhost:8888上运行后,会产生以下错误。

Error: redirect_uri_mismatch

The redirect URI in the request: http://localhost:8888/oauth2callback did not match a registered redirect URI

Learn more

Request Details
cookie_policy_enforce=false
scope=https://www.googleapis.com/auth/calendar
response_type=code
access_type=offline
redirect_uri=http://localhost:8888/oauth2callback
display=page
client_id=400798961688.apps.googleusercontent.com

我的谷歌游戏机已注册以下网址。

Redirect URIs:  
http://localhost:8888/oauth2callback
https://localhost:8888/oauth2callback

JavaScript origins: http://localhost:8888
https://localhost:8888

任何人都可以帮助我吗?

0 个答案:

没有答案