Authentication fail
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 15/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- go
- Domain
- authentication, cli
Research direction
The failure happens in the device-flow login path of lark-cli auth login, which prints the verification URL and then polls for authorization. Start by finding where the CLI prints the authorization error and maps the server's authentication response to output, and reproduce the flow to see whether the QR code is missing for a separate reason. The issue does not say what the CLI should change, so first confirm with a maintainer whether this is an organization policy restriction the CLI should report more clearly, or a defect in the flow. Done means the cause is identified and the expected behavior is agreed.
Written by the indexing model from the issue text.
Description
[权限问题]
在执行 lark-cli auth login后,终端没显示二维码只显示连接
连接网页显示如下
cli返回结果如下
在浏览器中打开以下链接进行认证:
https://accounts.feishu.cn/oauth/v1/device/verify?flow_id=O0h6WN96dZkKOOOOOOOOOO0IH-qZDbpvVcBEyxG01Zmy&user_code=SCFN-KVRK
等待用户授权...
{
"ok": false,
"error": {
"type": "authentication",
"subtype": "unknown",
"message": "authorization failed: Unable to authorize. These permissions are restricted by your organization's security policy."
}
}
- 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