Skip to content

Commit f8140f1

Browse files
committed
接入企微免密登录
1 parent 0195fbc commit f8140f1

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

docs/img/system/trusted_domain.png

134 KB
Loading

docs/user_manual/X-Pack/app_integrate.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,22 @@
114114
智能体主页地址的构造可以参考企业微信开发指南[造网页授权链接——构造企业oauth2链接](https://developer.work.weixin.qq.com/document/path/91120#%E6%9E%84%E9%80%A0%E4%BC%81%E4%B8%9Aoauth2%E9%93%BE%E6%8E%A5)
115115
链接格式即参数说明如下:
116116

117-
- 链接格式:https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=REDIRECT_URI/admin/api/wecom/oauth2&response_type=code&scope=snsapi_privateinfo&appid=CorpID&agentid=AgentID&state=maxkb#wechat_redirect
117+
- 链接格式:https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI/chat/api/auth/wecom/oauth2?accessToken=ACCESSTOKEN&response_type=code&scope=snsapi_privateinfo&agentid=AGENTID&state=STATE#wechat_redirect
118118
- CORPID: 企业的 CorpID
119-
- REDIRECT_URI:授权后重定向的回调链接地址,需要使用 urlencode 对链接进行处理,例如:https%3A%2F%2Fmaxkbk.fit2cloud.cn,调整域名部分即可。
119+
- REDIRECT_URI:授权后重定向的回调链接地址,需要使用 urlencode 对链接进行处理,例如:https%3A%2F%2Fmaxkbk.fit2cloud.cn,调整域名部分即可
120+
- ACCESSTOKEN:智能体 ID
120121
- SCOPE:填 snsapi_privateinfo 即可
121-
- AGENTID:智能体 ID
122+
- AGENTID:企微应用 ID
122123

123-
主页地址示例:https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=https%3A%2F%2Fmaxkbk.fit2cloud.cn/admin/api/wecom/oauth2&response_type=code&scope=snsapi_privateinfo&appid=ww5fad05aaa36d118c&agentid=1000002&state=maxkb#wechat_redirect
124+
主页地址示例:https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww8ef82888c6f6e33&redirect_uri=https%3A%2F%2Fmaxkb.fit2cloud.cn/chat/api/auth/wecom/oauth2?accessToken=e113a4980984be3fe&response_type=code&scope=snsapi_privateinfo&agentid=1000002&state=STATE#wechat_redirect
124125

125126
![企业微信配置](../../img/system/weichat_oauth2.png)
126127

128+
!!! Abstract ""
129+
设置可信域名,在【应用管理】中点击【设置可信域名】,添加可信域名,并进行校验。可参考[可信域名配置](https://kb.fit2cloud.com/?p=915e0151-5581-406f-ac2e-22afb9b3b4bf)
130+
131+
![企业微信配置](../../img/system/trusted_domain.png)
132+
127133
!!! Abstract ""
128134
配置完成后,在企业微信工作台中找到 MaxKB 智能体,免登进行对话。
129135

0 commit comments

Comments
 (0)