我该如何更改“授权重定向URI”'至?

时间:2015-07-19 14:58:08

标签: android cordova google-plus google-play-services crosswalk-runtime

我正在使用基于Cordova的网络应用程序,使用Crosswalk编译为Android。

在Google Developers Console中,我设置了一个:

  

Web应用程序的客户端ID

使用Javascript起源:

  

http://localhost

我想知道我应该将重定向URI更改为防止我得到的错误,例如:

  

redirect_uri_mismatch

我已经使用了很多不同的结果,但没有一个有效。

在某些情况下,我已设法通过该应用登录 Google + ,但未请求播放器详情'或者'排行榜'数据

以下是当前设置中下载的 JSON

{"web":{
    "client_id":"XXXXX_clientID",
    "auth_uri":"https://accounts.google.com/o/oauth2/auth",
    "token_uri":"https://accounts.google.com/o/oauth2/token",
 "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
    "client_email":"","client_x509_cert_url":"",
    "client_secret":"XXXXX_clientSECRET",
    "redirect_uris":["http://localhost/oauth2callback"],
    "javascript_origins":["http://localhost","https://localhost"]}}

0 个答案:

没有答案