我正在使用基于Cordova的网络应用程序,使用Crosswalk编译为Android。
在Google Developers Console中,我设置了一个:
Web应用程序的客户端ID
使用Javascript起源:
我想知道我应该将重定向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"]}}