We Com Sso

Introduction #

WeCom (Enterprise WeChat) Single Sign-On (SSO) allows enterprise members to log in to SmartChart using their WeCom accounts. This provides unified identity authentication for cross-system access in enterprise deployment scenarios.

Comparison with DingTalk SSO #

Feature DingTalk SSO WeCom SSO
Callback domain https://login.dingtalk.com https://login.work.weixin.qq.com
Login endpoint _dingding _qiwei
Config prefix _DD _QW
Auth method OAuth2.0 OAuth2.0

WeCom Developer Platform Setup #

  • Configure in the WeCom admin console
  • Upload the downloaded txt authentication file under App Management

Add to Service Configuration #

{
  "_QW": {
    "CORPID": "wwxxxxxxxxxxx",
    "CORPSECRET": "xxxxxxxxxx"
  },
  "_qiwei": "https://login.work.weixin.qq.com/wwlogin/sso/login/?login_type=CorpApp&appid=xxxxxx&agentid=xxxx&redirect_uri=http://localhost.cn:8000/echart/qw_login&state=STATE"
}