EOS Low-Code Platform 8 EOS Low-Code Platform 8
产品简介
安装部署
应用开发
专题场景实战案例
低代码(Low-Code)开发参考手册
高开开发参考手册
流程开发参考手册
AFCenter 使用指南
Governor 使用指南
FAQ
  • AFCenter集成企业微信、钉钉或者飞书
  • 企业微信集成
  • 钉钉集成
  • 飞书集成

# AFCenter集成企业微信、钉钉或者飞书

在AFCenter中企业微信、钉钉和飞书同一时间只能配置集成一个,同时需要在AFCenter的组织权限中心-组织管理-机构管理-员工管理中给员工的详细信息中配置员工的电话,这个电话要与员工的企业微信、钉钉或者飞书中使用的电话号码相同。

# 企业微信集成

  1. AFCenter集成企业微信配置(application.properties中配置)

    afc.third-party.wechat.enable=true
    afc.third-party.wechat.crop-id=
    afc.third-party.wechat.agent-id=
    afc.third-party.wechat.secret=
    afc.third-party.wechat.redirect-uri=http://PC端域名端口/#/login
    afc.third-party.wechat.mobile-redirect-uri=http://移动端域名端口/#/login
    # 可选配置
    afc.third-party.wechat.compatible-2-solutions=false
    
  2. afc.third-party.wechat.enable配置为true即开启企业微信集成

  3. afc.third-party.wechat.crop-id是企业的CorpID、afc.third-party.wechat.agent-id是应用的id、afc.third-party.wechat.secret是应用的密钥,在企业微信的后台管理功能中可以查询到

  4. afc.third-party.wechat.redirect-uri是PC端前端的域名和端口(需要在企业微信的应用管理中开启企业微信授权登录,并配置Web网页授权回调域)

  5. afc.third-party.wechat.mobile-redirect-uri是移动端前端的域名和端口(此域名需要在企业微信中配置可信回调域)

  6. afc.third-party.wechat.compatible-2-solutions是一个可选配置,默认是false,此配置如果设置为true则不使用手机号进行用户身份认证,改用企业微信中的userId进行身份认证,注意,userId需要跟AFCenter中的员工编码一致,需要手动提前配置。

# 钉钉集成

  1. AFCenter集成钉钉配置(application.properties中配置)

    afc.third-party.ding.enable=false
    afc.third-party.ding.app-key=
    afc.third-party.ding.secret=
    afc.third-party.ding.agent-id=
    afc.third-party.ding.redirect-uri=http://域名和端口/#/login
    
  2. afc.third-party.ding.enable配置为true即开启钉钉集成

  3. afc.third-party.ding.app-key是钉钉中应用的唯一标识、afc.third-party.ding.secret是钉钉中应用的密钥、afc.third-party.ding.agent-id是微应用的agent_id

  4. afc.third-party.ding.redirect-uri是PC端集成钉钉时的前端域名和端口,移动端的配置在钉钉中进行配置

  5. 集成钉钉时还需要给该应用下的组织机构人员在钉钉中配置权限,需要个人手机号信息、通讯录个人信息读权限、邮箱等个人信息、企业员工手机号信息、成员信息读权限、根据手机号姓名获取成员信息的接口访问权限、企业微应用后台免登接口的访问权限、调用OpenApp专有API时需要具备的权限。具备以上这些权限才能保证AFCenter中钉钉集成相关功能可用。

# 飞书集成

  1. AFCenter集成飞书配置(application.properties中配置)

    afc.third-party.feishu.enable=true
    afc.third-party.feishu.appId=xxx
    afc.third-party.feishu.appSecret=xxx
    afc.third-party.feishu.redirectUri=http://127.0.0.1:13382/#/login
    afc.third-party.feishu.mobile-redirect-uri=http://移动端域名端口/#/login
    # 飞书集成权限信息包含用户信息权限及消息发送权限,如果有其他改造需求只需在此添加相应权限按空格隔开
    afc.third-party.feishu.scope=contact:contact.base:readonly contact:user.base:readonly contact:user.phone:readonly contact:user.id:readonly contact:contact:readonly_as_app contact:user.employee_id:readonly im:message im:message:send_as_bot im:message:send_multi_users
    
  2. afc.third-party.feishu.enable配置为true即开启飞书集成

  3. afc.third-party.feishu.appId飞书appId配置

  4. afc.third-party.feishu.appSecret飞书secret配置

  5. afc.third-party.feishu.redirectUri飞书认证后的回调地址只需要修改端口和域名

  6. afc.third-party.feishu.mobile-redirect-uri移动端飞书认证后的回调地址只需要修改端口和域名

  7. afc.third-party.feishu.scope飞书集成权限信息包含用户信息权限及消息发送权限,如果有其他改造需求只需在此添加相应权限按空格隔开

← 访问凭证管理 自定义首页 →