九游会官网登录入口网页-ag8九游会j9登录入口平台可以使用符合oauth2标准的第三方认证进行平台的登录认证。本篇主要介绍如何将在九游会官网登录入口网页-ag8九游会j9登录入口中集成微信扫码登录功能。
这里的微信不同于上文中的企业微信,需要注册微信开发者帐号.
在 https://open.weixin.qq.com 注册微信开发者帐号.
创建网站应用:
审核通过后,可以到 系统设置 -> 安全配置 -> 单点登录 -> oauth配置 中添加一个oauth服务配置:
或者直接在服务配置文件token.json中配置 :
"oauthclients": [ { "enable": true, "name": "微信", "displayname": "微信", "icon": "https://open.weixin.qq.com/zh_cn/htmledition/res/assets/res-design-download/icon64_appwx_logo.png", "clientid": "wx********", "clientsecret": "****************", "authaddress": "https://open.work.weixin.qq.com/wwopen/sso/qrconnect", "authparameter": "redirect_uri={$redirect_uri}&appid={$clientid}&response_type=code&scope=snsapi_login&state=state", "authmethod": "get", "tokenaddress": "https://api.weixin.qq.com/sns/oauth2/access_token", "tokenparameter": "appid={$clientid}&secret={$clientsecret}&code=${code}&grant_type=authorization_code", "tokenmethod": "post", "tokentype": "json", "infoaddress": "", "infoparameter": "", "infomethod": "get", "infotype": "json", "infocredentialfield": "openid", "infoscripttext": "", "bindingenable": false, "bindingfield": "open1id" } ]
上一篇:移动办公-创建自定义企业微信应用
下一篇:钉钉-使用钉钉扫码登录o2oa