Add Ctfile v4 login parsing for password-protected shares

Password shares are blocked by Turnstile on the anonymous web API. When a
refresh token or access token is configured, convert the share to an xtc
link and use the official client list and fetch-url calls. Password-free
shares still use ALTCHA. Tests use short synthetic fixtures only.

Co-authored-by: qaiu <[email protected]>
This commit is contained in:
Cursor Agentandqaiu committed 2026-11-24 05:08:07 +00:00
1 parent 0d133ee437
commit 62fa23542d
7 files changed
+965 -6

No files matched your search

+5
View File
@@ -546,6 +546,11 @@ auths:
username: 你的用户名
password: 你的密码
# authorization: 浏览器登录后的 authorToken / sso-token
# 城通带访问密码的分享需要登录令牌。免密分享不用配。
# 登录 https://pan.ctfile.com 后,从 Session Storage 复制 refresh_token。
# ct:
# refresh_token: 登录后的 refresh_token
# token: 可选,当前 access token
```