在Google OAUTH2上找不到客户端密码

时间:2015-07-30 08:37:26

标签: oauth-2.0 google-api google-oauth2

我正在尝试从我的google驱动器中读取工作表,因此经过大量搜索和阅读(以及导入jar文件)后,我设法得到this而没有任何错误。问题是我无法得到我需要的client Secret。网上的每个人都说,当我创建id时,它在json文件或google的开发者控制台上,但事实并非如此。 我的json文件就像这样

{
  "private_key_id": ".....",
  "private_key": "-----BEGIN PRIVATE KEY-----......\n-----END PRIVATE KEY-----\n",
  "client_email": "xxxx@developer.gserviceaccount.com",
  "client_id": "xxxx.apps.googleusercontent.com",
  "type": "service_account"
}

由于

1 个答案:

答案 0 :(得分:0)

It turns out that I had to choose Installed Application instead of Service Account. With that option the client secret was created.