|
发表于 2022-6-8 10:25:52
|
显示全部楼层
本帖最后由 chenchen 于 2022-6-8 10:29 编辑
事先说明,微信开放平台和微信公众号都已经认证通过,同时开放平台的“网站运用”也审核通过
关于微信单点登录:
我目前我参照链接(https://www.o2oa.net/course/sfrgm2.html?h=%E5%BE%AE%E4%BF%A1)的对接,
我的对接如下
"oauthClients": [
{
"enable": true,
"name": "weixin",
"displayName": "微信",
"icon": "https://res.wx.qq.com/a/wx_fed/assets/res/OTE0YTAw.png",
"clientId": "微信开放平台网站应用APPID",
"clientSecret": "微信开放平台网站应用AppSecret",
"authAddress": "https://open.weixin.qq.com/connect/qrconnect",
"authParameter": "APPID\u003d{$client_id}\u0026response_type\u003dcode\u0026scope\u003dsnsapi_login\u0026state\u003dstate",
"authMethod": "GET",
"tokenAddress": "https://api.weixin.qq.com/sns/oauth2/access_token",
"tokenParameter": "APPID\u003d{$client_id}\u0026secret\u003d{$client_secret}\u0026code\u003d{$code}\u0026grant_type\u003dauthorization_code",
"tokenMethod": "GET",
"tokenType": "JSON",
"infoAddress": "https://api.weixin.qq.com/sns/oauth2/refresh_token",
"infoParameter": "APPID\u003d{$client_id}\u0026grant_type\u003drefresh_token\u0026refresh_token\u003d{$refresh_token}",
"infoMethod": "GET",
"infoType": "JSON",
"infoCredentialField": "openid",
"infoScriptText": "",
"bindingEnable": true,
"bindingField": "open1Id"
}
]
最终显示页面提示为“AppID 参数错误”
请管理员帮忙看看,到底哪里出错了
另外,我也参照了链接(https://www.bilibili.com/video/B ... id_from=333.999.0.0 ),显示同样的结果
|
|