客户端密钥应来自受保护的配置。删除或禁用连接会影响依赖该连接的用户登录。
identity-provider create
| 选项 | 说明 | 默认值 |
|---|---|---|
--user-pool-id <uid> | 用户池 ID,省略时使用当前账号的默认用户池 | 账号默认池 |
-r, --region <region> | API 调用地域 | — |
--json | 输出 JSON | 未启用 |
--file <path> | 使用 camelCase 字段的 JSON 请求,与独立字段选项互斥 | — |
--name <name> | 资源名称 | — |
--oauth-provider <provider> | OAuth 提供方标识,例如 feishu、lark、dingding | — |
--client-id <id> | OAuth 应用客户端 ID | — |
--client-secret <secret> | OAuth 应用客户端密钥 | — |
--authorization-endpoint <url> | OAuth 授权地址 | — |
--token-endpoint <url> | OAuth 令牌地址 | — |
--user-endpoint <url> | OAuth 用户信息地址 | — |
--scope <scope> | OAuth 权限范围,可重复传入 | — |
--id-attribute <path> | 外部用户 ID 的属性路径 | — |
--use-pkce | 启用 PKCE | 未启用 |
--no-use-pkce | 关闭 PKCE | — |
--enabled | 启用连接 | 未启用 |
--disabled | 禁用连接 | 未启用 |
--provider-options <json> | 使用 camelCase 字段的 OAuthProviderOptions JSON | — |
--claims-propagation-config <json> | 使用 camelCase 字段的 OAuthClaimsPropagationConfig JSON | — |
--attribute-mapping <json> | 使用 camelCase 字段的属性映射 JSON,可重复指定 | — |
agentkit identity-provider create --name team-login --oauth-provider feishu --client-id "$CLIENT_ID" --client-secret "$CLIENT_SECRET" --authorization-endpoint "$AUTH_URL" --token-endpoint "$TOKEN_URL" --user-endpoint "$USER_URL" --id-attribute '["data","union_id"]'
identity-provider list
| 选项 | 说明 | 默认值 |
|---|---|---|
--user-pool-id <uid> | 用户池 ID,省略时使用当前账号的默认用户池 | 账号默认池 |
-r, --region <region> | API 调用地域 | — |
--json | 输出 JSON | 未启用 |
agentkit identity-provider list --json
identity-provider get
| 选项 | 说明 | 默认值 |
|---|---|---|
--user-pool-id <uid> | 用户池 ID,省略时使用当前账号的默认用户池 | 账号默认池 |
--connection-id <id> | OAuth 连接 ID | — |
-r, --region <region> | API 调用地域 | — |
--json | 输出 JSON | 未启用 |
agentkit identity-provider get --connection-id "$CONNECTION_ID"
identity-provider update
| 选项 | 说明 | 默认值 |
|---|---|---|
--user-pool-id <uid> | 用户池 ID,省略时使用当前账号的默认用户池 | 账号默认池 |
--connection-id <id> | OAuth 连接 ID | — |
--clear-scopes | 清空权限范围 | 未启用 |
--clear-attribute-mappings | 清空属性映射 | 未启用 |
-r, --region <region> | API 调用地域 | — |
--json | 输出 JSON | 未启用 |
--file <path> | 使用 camelCase 字段的 JSON 请求,与独立字段选项互斥 | — |
--name <name> | 资源名称 | — |
--oauth-provider <provider> | OAuth 提供方标识,例如 feishu、lark、dingding | — |
--client-id <id> | OAuth 应用客户端 ID | — |
--client-secret <secret> | OAuth 应用客户端密钥 | — |
--authorization-endpoint <url> | OAuth 授权地址 | — |
--token-endpoint <url> | OAuth 令牌地址 | — |
--user-endpoint <url> | OAuth 用户信息地址 | — |
--scope <scope> | OAuth 权限范围,可重复传入 | — |
--id-attribute <path> | 外部用户 ID 的属性路径 | — |
--use-pkce | 启用 PKCE | 未启用 |
--no-use-pkce | 关闭 PKCE | — |
--enabled | 启用连接 | 未启用 |
--disabled | 禁用连接 | 未启用 |
--provider-options <json> | 使用 camelCase 字段的 OAuthProviderOptions JSON | — |
--claims-propagation-config <json> | 使用 camelCase 字段的 OAuthClaimsPropagationConfig JSON | — |
--attribute-mapping <json> | 使用 camelCase 字段的属性映射 JSON,可重复指定 | — |
agentkit identity-provider update --connection-id "$CONNECTION_ID" --enabled
identity-provider delete
| 选项 | 说明 | 默认值 |
|---|---|---|
--user-pool-id <uid> | 用户池 ID,省略时使用当前账号的默认用户池 | 账号默认池 |
--connection-id <id> | OAuth 连接 ID | — |
-r, --region <region> | API 调用地域 | — |
--yes | 跳过交互确认 | 未启用 |
--json | 输出 JSON | 未启用 |
agentkit identity-provider delete --connection-id "$CONNECTION_ID"