Skip to content

Commit 22eb304

Browse files
authored
docs(doubao): update to doubao new (#316)
1 parent 2daad08 commit 22eb304

4 files changed

Lines changed: 96 additions & 13 deletions

File tree

pages/guide/drivers/doubao.md

Lines changed: 96 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,128 @@ categories:
1414
<!--@include: @/snippets/reverse-tip.md-->
1515

1616
::: en
17-
Mount [Doubao Drive](https://www.doubao.com/drive/) cloud storage.
17+
Mount [Doubao Drive](https://www.doubao.com/chat/drive/) cloud storage.
1818

1919
:::
2020
::: zh-CN
21-
挂载 [豆包云盘](https://www.doubao.com/drive/) 云存储。
21+
挂载 [豆包云盘](https://www.doubao.com/chat/drive/) 云存储。
2222

2323
:::
2424

25-
## Root folder ID { lang="en" }
26-
2725
::: en
28-
The root folder ID needs to be obtained manually. Open browser developer tools, visit [Doubao Drive](https://www.doubao.com/drive/), log in to your account, open the `Network` tab, search for `homepage`, switch to the `Preview` tab, where `root_id` is the root folder ID.
29-
![Doubao Drive Session Token](/img/drivers/doubao/doubao-root-folder-path.png)
26+
::: danger Security Risk
27+
28+
Do not use 302 if the storage is public accessible.
29+
Otherwise, the download link may leak sensitive information such as access token or signature.
30+
Others may use the leaked link to **access all your files**.
31+
32+
:::
33+
::: zh-CN
34+
::: danger 安全风险
35+
36+
若存储可公开访问,则请勿使用302重定向。
37+
否则,下载链接可能泄露访问令牌、签名等敏感信息。
38+
他人可利用泄露的链接**访问你所有的文件**
3039

3140
:::
3241

42+
## Root folder ID { lang="en" }
43+
3344
## 根文件夹ID { lang="zh-CN" }
3445

46+
::: en
47+
The root folder ID is the parameter value displayed in the address bar when accessing Doubao Drive via a web page. For example, after accessing [Doubao Drive](https://www.doubao.com/chat/drive/), the address bar shows `https://www.doubao.com/chat/drive/AAAAAAAAAAAAAAAAAAAAAAAAAA?tab=myUpload`, where `AAAAAAAAAAAAAAAAAAAAAAAAAA` is the root folder ID.
48+
49+
![Doubao Drive Root Folder ID](/img/drivers/doubao/doubao-root-folder-id.png)
50+
:::
51+
3552
::: zh-CN
36-
根文件夹ID需要手动获取,打开浏览器开发者工具,访问 [豆包云盘](https://www.doubao.com/drive/),登陆你的账户,打开`network(网络)`栏,搜索 `homepage`,切换到 `Preview(预览)`栏,其中root_id为根文件夹ID。
37-
![Doubao Drive Root Folder ID](/img/drivers/doubao/doubao-root-folder-path.png)
53+
根文件夹ID即为网页访问豆包云盘时地址栏中的参数值,例如访问[豆包云盘](https://www.doubao.com/chat/drive/)后,地址栏显示为`https://www.doubao.com/chat/drive/AAAAAAAAAAAAAAAAAAAAAAAAAA?tab=myUpload`,其中`AAAAAAAAAAAAAAAAAAAAAAAAAA`即为根文件夹ID。
3854

55+
![豆包云盘根文件夹ID](/img/drivers/doubao/doubao-root-folder-id.png)
3956
:::
4057

4158
## Cookie { lang="zh-CN" }
4259

4360
## Cookie { lang="en" }
4461

4562
::: en
46-
Web Cookie
63+
Required. Web cookie. Used to refresh token and extract Authorization/DPoP tokens.
4764

48-
Open browser developer tools, visit [Doubao Drive](https://www.doubao.com/drive/), log in to your account, check the `Network` tab, search for `homepage` and open it, find `Cookie` in the `Header`, copy the `sid_guard` value and fill it in (note: please copy all the way to the end including +GMT).
65+
Open browser developer tools, visit [Doubao Drive](https://www.doubao.com/drive/), log in to your account, check the `Network` tab, search for `biz_auth` and open it, find `Cookie` in the `Header`, copy the complete value and fill it in.
4966

5067
![Doubao Drive Cookie](/img/drivers/doubao/doubao-cookie.png)
68+
69+
OpenList will automatically extract other attributes from the Cookie. Please ensure that the Cookie contains the following key-value pairs:
70+
71+
- `LARK_SUITE_DPOP`
72+
- `LARK_SUITE_ACCESS_TOKEN`
73+
- `feishu_dpop_keypair` (used for key generation, optional)
74+
5175
:::
5276
::: zh-CN
53-
网页Cookie
77+
必填,网页 Cookie。用于刷新 Token 和提取 Authorization/DPoP Token。
5478

55-
打开浏览器开发者工具,访问 [豆包云盘](https://www.doubao.com/drive/),登录账号后,查看`Network`(网络)Tab,搜索`homepage`并打开`homepage`,在`Header`(标头)中找到`Cookie`复制其`sid_guard`值填入即可(注意,请一直复制到+GMT结束)
79+
打开浏览器开发者工具,访问 [豆包云盘](https://www.doubao.com/drive/),登录账号后,查看`Network`(网络)Tab,搜索 `biz_auth` 并打开它,在 `Header`(标头)中找到 `Cookie`复制其完整值填入即可
5680

57-
![Doubao Drive Cookie](/img/drivers/doubao/doubao-cookie.png)
81+
![豆包云盘Cookie](/img/drivers/doubao/doubao-cookie.png)
82+
83+
OpenList 会自动从 Cookie 中提取其他属性。请确保 Cookie 中包含以下键值对:
84+
85+
- `LARK_SUITE_DPOP`
86+
- `LARK_SUITE_ACCESS_TOKEN`
87+
- `feishu_dpop_keypair` (用于密钥生成,可选)
88+
89+
:::
90+
91+
## App ID { lang="en" }
92+
93+
## App ID { lang="zh-CN" }
94+
95+
::: en
96+
必填,Doubao's App ID. The App ID may vary for different clients, please refer to the actual value.
97+
:::
98+
99+
::: zh-CN
100+
必填,豆包的App ID。不同客户端的App ID可能不相同,请以实际为准。
101+
:::
102+
103+
## DPoP Key Secret, Auth Client ID, Auth Scope, Auth SDK Source, Auth SDK Version { lang="en" }
104+
105+
## DPoP 密钥、认证客户端ID、认证区域、认证SDK来源、认证SDK版本 { lang="zh-CN" }
106+
107+
::: en
108+
Optional, for Token refresh. Please obtain it yourself, and refer to the actual value.
109+
:::
110+
111+
::: zh-CN
112+
可选,用于刷新 Token。请自行获取,以实际为准。
113+
:::
114+
115+
## Share Link { lang="en" }
116+
117+
## 分享链接 { lang="zh-CN" }
118+
119+
::: en
120+
Whether to use share link for download. If enabled, OpenList will create share and request with anonymous user's token to create download link. This can reduce authorization leak.
121+
122+
Please ensure you have filled all authentication options above before enabling this function.
123+
:::
124+
125+
::: zh-CN
126+
是否使用分享链接下载。启用后,OpenList 将创建分享然后使用匿名用户Token请求创建下载链接以减少授权泄露。
127+
128+
请确保您在启用此功能前已经填写了上面的所有认证参数。
129+
:::
130+
131+
## Ignore JWT Check { lang="en" }
132+
133+
## 忽略 JWT 检查 { lang="zh-CN" }
134+
135+
::: en
136+
Whether to ignore JWT check to prevent time issue
137+
:::
138+
139+
::: zh-CN
140+
是否忽略 JWT 检查以避免时间问题。
58141
:::
-356 KB
Loading
45.7 KB
Loading
-60 KB
Binary file not shown.

0 commit comments

Comments
 (0)