查看: 5826|回复: 1

通过企业微信登录O2OA问题

升级   0.91%

17

主题

19

回帖

91

积分

注册会员

Rank: 2

积分
91
发表于 2019-8-19 15:09:16 | 显示全部楼层 |阅读模式
我配置好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"
    }
  ]
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2019-8-30 14:27:02 | 显示全部楼层
https://my.oschina.net/o2oa/blog/2966720   企业微信的配置,您可以参考一下这个文档
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread