4.4.2 企业微信

举例:

  1. 企微OAuth2授权地址https://open.weixin.qq.com/connect/oauth2/authorize?appid=${redirect_uri}&response_type=code&scope=snsapi_base&state=STATE&agentid=${agentid}#wechat_redirect
  2. 企微登录接口https://bip-pre.diwork.com/iuap-ymdp-portal/mp/api/v1/wecom/login/custom?thirdUCId=${thirdUCId}

企微OAuth2授权参数说明

参数 必须 说明
appid 企业的CorpID
redirect_uri 授权后重定向的回调地址,请使用urlencode对链接进行处理
response_type 返回类型,此时固定为:code
scope 应用授权作用域。snsapi_base:静默授权,可获取成员的基础信息(UserId与DeviceId);snsapi_privateinfo:手动授权,可获取成员的详细信息,包含头像、二维码等敏感信息。
state 重定向后会带上state参数,企业可以填写a-zA-Z0-9的参数值,长度不可超过128个字节
agentid 应用agentid,建议填上该参数(如果为第三方应用或者代开发自建应用,未填该参数不会触发接口许可自动激活)。snsapi_privateinfo时必填否则报错;
#wechat_redirect 终端使用此参数判断是否需要带上身份信息

企微登录接口

参数 必须 说明
thirdUCId 企微集成认证中心编码,
是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24