larksuite / larksuite/cli

如何实现应用内授权,而不是跳开浏览器

Open
#878 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

domain/auth enhancement
Dominant language
Go
Stars
17.3k
Forks
1.4k
Avg merge
2d 4h
Merged PRs (30d)
105

Description

现在在执行命令遇到缺少授权scope时,使用 lark-cli auth login --scope "im:message.send_as_user" ,弹出浏览器授权,会导致用户需要跳出本地产品中断体验,或者一些非桌面场景无法打开浏览器。

需求:支持在终端中通过命令授权

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the lark-cli auth login --scope command and trace how it handles missing authorization scopes and launches the browser. Define a terminal-based authorization flow that also works when no browser is available. Done means users can authorize the requested scope entirely from the terminal without leaving the local product.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.