Authentication fail

Open
#2,818 3 comments 0 reactions 0 assignees View on GitHub

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

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

bug domain/auth

[权限问题]
在执行 lark-cli auth login后,终端没显示二维码只显示连接
连接网页显示如下

Image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from larksuite/cli

All issues in larksuite/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.