钉钉用户信息回调到关爱通实现钉钉单点登录到关爱通
注意:
如果关爱通提供的client端不能满足企业的需求,请对接此接口,否则见关爱通client端绑定文档
此接口需要企业自己实现对接钉钉,然后将用户信息回传
此接口验证成功后会直接浏览器重定向到关爱通单点登录页
https://openapi.guanaitong.tech/dingTalk/callback
GET/POST
(1)公共参数
发送请求是必须传入公共参数,详见公共参数
(2)私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
| authCode | 是 | string | [1,20] | 在关爱通获取的authauth获取 |
| userInfo | 是 | string | [1,200] | 钉钉用户信息的json字符串,至少需要userid,extattr,errmsg,errcode字段信息 |
POST /dingTalk/callback HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
access_token=dbda52c32c373ccdbf9bb31a32dd4&authCode=a68e335299dc89a754c793eae31e8324
&sign=825a47b34185b70a959efc6436dfb18bfbb3d37b&
timestamp=1554367072
&userInfo={"userid":"manager8263","errmsg":"ok",
"extattr":{"关爱通工号":"youxuann001","gatCode":"youxuann001"},"errcode":0}&version=1.0.0"