Achrou / goindex-theme-acrou

This is a goindex theme.一个goindex的扩展主题。
https://ossdev.node6.workers.dev/
MIT License
1.62k stars 874 forks source link

如何设置GoIndex能用的自己的Google Client ID? #199

Closed MFYDev closed 3 years ago

MFYDev commented 3 years ago

感谢Achrou开源此程序!

我在切换到自己的Google Client ID时遇到了问题,目前Google Client ID适用范围没有其他选项,推测可用的是Web应用桌面应用,所以我的设置步骤如下:

  1. 选择桌面应用,获取client id 和 secret
  2. 开启Google Drive API
  3. OAUTH同意屏幕里面允许所有Google Drive权限,域名设置为我自己的goindex域名
  4. refresh_token使用我自己的token,这个确定无误

但是此方法导致的直接结果就是所有文件无显示,将client id和secret切换回您的之后一切又正常。

请问哪里做错了呢?或者有任何教程吗?

MFYDev commented 3 years ago

已解决

Dragon-son commented 3 years ago

已解决

请问怎么解决的

ckx000 commented 3 years ago

已解决

请问怎么解决的

生成Authorization Code的时候就必须要用自己的client id 和 secret,然后再用它们生成refresh_token