[Bug] 豆包账号 Base OAuth 授权被拒绝,UAT 刷新及 auth scopes 返回 21001(1.0.97/1.0.98)

Aperta
#2,815 24 commenti 7 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
12/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cli, go

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug domain/auth domain/base

豆包账号向个人应用授权 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 权限及持续访问权限。切换登录并用飞书手机端扫码后仍出现同样结果;单项权限详情箭头点击无响应。

重现命令:

  1. lark-cli auth status --json
  2. lark-cli auth scopes --json
  3. lark-cli auth status --json --verify
  4. 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 项;具体受限项未在错误中给出。

请协助确认:

  1. 豆包个人账号是否支持向这类个人应用授予 Base API 用户权限?
  2. 21001 是账号资格、应用可用范围、权限配置还是其他数据安全策略触发?如何在官方设置中定位和恢复?
  3. 如果必须使用另一种账号或应用类型,如何合法继续访问已有个人多维表格?
Lingua principale
Go
Stelle
18.2k
Fork
1.4k
Merge medio
1g 3h
PR unite (30g)
18

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di larksuite/cli

Tutte le issue di larksuite/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.