|
发表于 2019-3-18 15:57:49
|
显示全部楼层
将O2OA作为OAth2接入的客户端,接入已经提供的认证服务器,比如将O2OA作为客户端接入微信,实现使用微信登录O2OA系统:
{
"enable": true,
"name": "weixin",
"displayName": "微信登陆",
"icon": xxxxx这里是图片的base64编码",
"clientId": "wxebxxxxxxxxxxxxxxxx",
"clientSecret": "b05xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"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/oauth2/refresh_token",
"infoParameter": "appid={$client_id}&grant_type=refresh_token&refresh_token={$refresh_token}",
"infoMethod": "GET",
"infoType": "json",
"infoCredentialField": "openid",
"infoScriptText": "",
"bindingEnable": true,
"bindingField": "open1Id"
} |
|