【微信登录】微信扫码授权登录接入的配置问题
管理大大:官方给提供的参考文档《微信认证-微信扫码登录O2OA》原文地址:https://www.o2oa.net/cms/mobileoa/197.html 存在很多错误的地方,我们参考后对接不成功,改造以后才成功,版本号【5.1.1-8ba34ad】。如下图所示:
修改以后如下图:
,
请核对一下是否真实存在,谢谢啦。
这个文字版的oauthClients配置--单微信扫码登录,根据最新的微信文档 {$openid} 需要自己去实现以下,不然还是不能成功
"oauthClients": [
{
"enable": true,
"name": "微信登录",
"displayName": "微信绑定",
"icon": "https://open.weixin.qq.com/zh_CN/htmledition/res/assets/res-design-download/icon64_appwx_logo.png",
"clientId": "xxxxxxxx",
"clientSecret": "xxxxxxxxx",
"authAddress": "https://open.weixin.qq.com/connect/qrconnect",
"authParameter": "appid={$client_id}&response_type=code&scope=snsapi_login&state=STATE",
"authMethod": "GET",
"tokenAddress": "https://api.weixin.qq.com/sns/oauth2/access_token",
"tokenParameter": "appid={$client_id}&secret={$client_secret}&code={$code}&grant_type=authorization_code",
"tokenMethod": "GET",
"tokenType": "json",
"infoAddress": "https://api.weixin.qq.com/sns/userinfo",
"infoParameter": "access_token={$access_token}&openid={$openid}",
"infoMethod": "GET",
"infoType": "json",
"infoCredentialField": "openid",
"infoScriptText": "",
"bindingEnable": true,
"bindingField": "open1Id"
} 好的好的,管理员转给相关同事跟进一下,去修改一下文档,感谢您的反馈:lol
页:
[1]