[Bug] 豆包账号 Base OAuth 授权被拒绝,UAT 刷新及 auth scopes 返回 21001(1.0.97/1.0.98)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 12/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cli, go
- Domain
- authentication, cli
Research direction
The failure comes from the OAuth scope flow behind lark-cli auth login, auth scopes and auth status --verify, and it is returned by a Feishu server policy (code 21001), not by code in this repository. Read the auth command implementation first to see how the requested scope list is built and how the token refresh path handles a 21001 response. Done would mean a clear diagnosis of which part is server-side, plus a CLI error message that tells the user what to change; the issue itself needs maintainer triage and access to the Feishu account settings.
Written by the indexing model from the issue text.
Description
豆包账号向个人应用授权 Base 权限被拒绝,CLI 返回 21001
环境:Windows 11 amd64,飞书官方 lark-cli 1.0.97;另以官方发布且 SHA-256 校验通过的 1.0.98 复测。
同一应用曾于 2026-10-12 至 10-13 成功创建并读写个人多维表格(my.feishu.cn)。现在网页版仍可正常查看原表,没有升级或购买提示。
当前结果:
- 用户令牌处于 needs_refresh,刷新时返回 code=21001、type=policy、subtype=access_denied,说明为 requested scope blocked by data security policy。
- auth scopes --json 也返回相同的 21001 策略拒绝。
- 1.0.98 的 auth status --json --verify 退出码为 0,但用户状态为 verify_failed,未恢复可用授权。
- 新的有效官方授权页面显示当前身份为“豆包账号”,并提示当前账号无法使用该应用,不能授予请求的 Base 权限及持续访问权限。切换登录并用飞书手机端扫码后仍出现同样结果;单项权限详情箭头点击无响应。
重现命令:
- lark-cli auth status --json
- lark-cli auth scopes --json
- lark-cli auth status --json --verify
- lark-cli auth login --scope "base:app:create base:app:read base:table:create base:table:read base:table:update base:field:create base:field:read base:field:update base:record:create base:record:read base:record:update base:view:read base:view:write_only" --no-wait --json,并打开返回的官方授权页面。
请求的权限:
base:app:create base:app:read
base:table:create base:table:read base:table:update
base:field:create base:field:read base:field:update
base:record:create base:record:read base:record:update
base:view:read base:view:write_only
官方流程另外包含 offline_access。此前服务器返回并缓存的授权集合为 57 项;具体受限项未在错误中给出。
请协助确认:
- 豆包个人账号是否支持向这类个人应用授予 Base API 用户权限?
- 21001 是账号资格、应用可用范围、权限配置还是其他数据安全策略触发?如何在官方设置中定位和恢复?
- 如果必须使用另一种账号或应用类型,如何合法继续访问已有个人多维表格?
- Dominant language
- Go
- Stars
- 18.2k
- Forks
- 1.4k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 18
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/cli
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
domain/im
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug domain/doc
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsPossibly taken @linye157 claimed this 26 days ago. Opendomain/mail
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginPossibly taken @linye157 claimed this 26 days ago. Openbug domain/auth domain/im
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
larksuite/cli#2869 · 5 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
github/github-mcp-server#3960 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
JuliusBrussee/caveman#1594 ·
Maintainers usually reply within 1 day
-
C-bug O-community X-blathers-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
cockroachdb/cockroach#176264 · 1 comment ·
-
security trivy
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
kubefleet-dev/kubefleet#1068 ·
Maintainers usually reply within 3 days