docs: update redirect URL configuration for device flow login

This commit is contained in:
audanye-sudo
2026-03-28 23:39:13 +08:00
parent 9d90474fd3
commit 60086a8aaf
2 changed files with 16 additions and 2 deletions
+8 -1
View File
@@ -92,7 +92,14 @@ make build
### 步骤 2:配置重定向 URL
进入应用 → **安全设置**,在「重定向 URL」中输入 `http://127.0.0.1` 并保存。
进入应用 → **安全设置**,在「重定向 URL」中添加以下地址并保存:
```
http://127.0.0.1
https://login.dingtalk.com
```
> `http://127.0.0.1` 用于本地浏览器登录;`https://login.dingtalk.com` 用于 `--device` 设备流登录(Docker 容器、远程服务器等无浏览器环境)。建议两个都配置。
<details>
<summary>查看截图</summary>
+8 -1
View File
@@ -92,7 +92,14 @@ Go to the [Open Platform Console](https://open-dev.dingtalk.com/fe/app?hash=%23%
### Step 2: Configure Redirect URL
Go to app settings → **Security Settings**. Enter `http://127.0.0.1` as the redirect URL and save.
Go to app settings → **Security Settings**. Add the following redirect URLs and save:
```
http://127.0.0.1
https://login.dingtalk.com
```
> `http://127.0.0.1` is for local browser login; `https://login.dingtalk.com` is for `--device` device-flow login (Docker containers, remote servers, and other headless environments). We recommend configuring both.
<details>
<summary>View screenshot</summary>