Skip to content

Commit

Permalink
Merge pull request #3838 from DaoCloud/lemon
Browse files Browse the repository at this point in the history
WeChat
  • Loading branch information
windsonsea authored Feb 6, 2024
2 parents 8826eaa + 40a76f4 commit 9fee933
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
Binary file added docs/zh/docs/ghippo/images/access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/zh/docs/ghippo/images/mybusiness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/zh/docs/ghippo/images/oauth2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/zh/docs/ghippo/images/selfapplication.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/zh/docs/ghippo/user-guide/access-control/oauth2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# OAuth 2.0 - 企业微信

如果您的企业或组织中的成员均管理在企业微信中,您可以使用全局管理提供的基于 OAuth 2.0 协议的身份提供商功能,
而不必在 DCE 5.0 中为每一位组织成员创建用户名/密码。 您可以向这些外部用户身份授予使用 DCE 5.0 资源的权限。

### 具体操作步骤如下:

1. 使用具有 `admin` 角色的用户登录 DCE 5.0。点击左侧导航栏底部的`全局管理` -> `用户与访问控制`

![用户与访问控制](../../images/access.png)

2. 在左侧导航栏选择`身份提供商`,点击`OAuth2.0`页签。填写表单字段,建立与企业微信的信任关系后,点击`保存`

![Oauth2.0](../../images/oauth2.png)

### 企业微信中对应的字段

!!! note

对接前需要在企业微信管理后台中创建自建应用,如何创建自建应用[链接](https://open.work.weixin.qq.com/help2/pc/16892?person_id=1&searchData=)

| 字段 | 描述 |
| ------------ | ---------------|
| 企业 ID | 企业微信的 ID |
| Agent ID | 自建应用的 ID |
| ClientSecret |自建应用的 Secret |

企业微信 ID:

![Oauth2.0](../../images/mybusiness.png)

Agent ID 和 ClientSecret:

![agent](../../images/selfapplication.png)
1 change: 1 addition & 0 deletions docs/zh/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ nav:
- 接入管理:
- ghippo/user-guide/access-control/docking.md
- Webhook: ghippo/user-guide/access-control/webhook.md
- OAuth 2.0 之企业微信: ghippo/user-guide/access-control/oauth2.0.md
- 工作空间与层级:
- ghippo/user-guide/workspace/ws-folder.md
- 创建和删除工作空间: ghippo/user-guide/workspace/workspace.md
Expand Down

0 comments on commit 9fee933

Please sign in to comment.