|
|
我配置好oauth后,用企业微信客户端登录O2OA,跳转到以下页面,没有其他反应

oauth配置如下:

root@shion:/opt/o2oa/o2server/config# cat token.json
{
"sslKeyStorePassword": "hcPb1w44",
"sslKeyManagerPassword": "hcPb1w44",
"initialManagerDistinguishedName": "xadmin@o2oa@P",
"ssos": [
{
"enable": false,
"client": "",
"key": ""
}
],
"oauths": [
{
"enable": false,
"clientId": "",
"mapping": {}
}
],
"oauthClients": [
{
"enable": true,
"name": "企业微信",
"displayName": "企业微信",
"icon": "xxxxxxx",
"clientId": "wwadfeeg223le18ba",
"clientSecret": "izG--qDJVAICSEFkljkl40mZDllklkl3o4okkmE",
"authAddress": "https://open.weixin.qq.com/connect/oauth2/authorize",
"authParameter": "appid\u003dwwadfeeg223le18ba\u0026redirect_uri\u003dhttps%3a%2f%2foa.iris-xie.com%2fx_desktop%2fqiyeweixinsso.html\u0026response_type\u003dcode\u0026scope\u003dsnsapi_base\u0026state\u003dSTATE#wechat_redirect",
"authMethod": "GET",
"tokenAddress": "https://qyapi.weixin.qq.com/cgi-bin/gettoken",
"tokenParameter": "corpid\u003d{$clientId}\u0026corpsecret\u003d{$clientSecret}\u0026redirect_uri\u003dhttps%3a%2f%2foa.iris-xie.com%2fx_desktop%2fqiyeweixinsso.html\u0026code\u003d{$code}\u0026grant_type\u003dauthorization_code",
"tokenMethod": "GET",
"tokenType": "json",
"infoAddress": "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo",
"infoParameter": "access_token\u003d{$access_token}\u0026code\u003d{$code}",
"infoMethod": "GET",
"infoType": "json",
"infoCredentialField": "openId",
"infoScriptText": " ",
"bindingEnable": true,
"bindingField": "open1Id"
}
] |
|