dingtalk_sso
v0.0.2
Published
钉钉免登接口,ISV和企业号通用。
Downloads
3
Readme
dingtalk sso
钉钉免登接口,ISV和企业号通用。
##安装
npm install dingtalk_sso
##示例
构造函数:
var dingtalk_sso = require('dingtalk_sso');
var conf = {
corpid: 'dingxxxxxxxxxxxxxxx',
SSOSecret:'C1oXyeJUgH_QXEHYJS4-Um-zxfxxxxxxxxxxxxxxxxxx-6np3fXskv5dGs'
}
//ISV的corpid,SSOSecret在 http://console.d.aliyun.com/#/dingding/env 查看。
var api = new dingtalk_sso(conf);
##方法
通过CODE(免登授权码)换取用户身份
api.getSSOUserInfoByCode(code, callback)
生成授权链接
api.generateAuthUrl(redirect_url)
##更多钉钉相关 ISV套件主动调用API: dingtalk_suite ISV套件回调server: dingtalk_suite_callback 企业号API: dingtalk_enterprise