echo 发表于 2019-8-19 15:09:16

通过企业微信登录O2OA问题

我配置好oauth后,用企业微信客户端登录O2OA,跳转到以下页面,没有其他反应
http://www.o2oa.net:20020/x_file_assemble_control/jaxrs/file/649b1468-a43d-488e-8afe-389cfabc8000/download/stream
oauth配置如下:
http://www.o2oa.net:20020/x_file_assemble_control/jaxrs/file/ceddacca-4d0e-4df6-9bf4-8776331fab3f/download/stream
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"
    }
]

论坛管理员 发表于 2019-8-30 14:27:02

https://my.oschina.net/o2oa/blog/2966720   企业微信的配置,您可以参考一下这个文档
页: [1]
查看完整版本: 通过企业微信登录O2OA问题