查看: 3839|回复: 3

关于系统SSO配置,如何实现认证对接?

升级   22%

3

主题

0

回帖

11

积分

新手上路

Rank: 1

积分
11
发表于 2019-3-12 11:59:58 | 显示全部楼层 |阅读模式
管理员您好,如何通过Oauth服务端为o2oa完成授权?相关的配置文件如何配置?有没有相应的示例可以参照一下呢?
期待您的答复!多谢!
回复

使用道具 举报

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37657
发表于 2019-3-18 15:50:06 | 显示全部楼层
将O2OA作为OAth2认证服务器,相关客户端配置信息,比如将openmetting作为客户端接入O2OA系统:

{
      "enable": false,
      "clientId": "openmeeting",
      "mapping": {
        "loginName": "mobile",
        "name": "name",
        "email": "(person.getName()+'@xxx.xxx.xxx')"
      }
    }
回复

使用道具 举报

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37657
发表于 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"
    }
回复

使用道具 举报

升级   21.4%

40

主题

95

回帖

607

积分

高级会员

Rank: 4

积分
607
发表于 2022-5-16 15:32:19 | 显示全部楼层
我的理解是:
把o2oa作为OAth2认证服务器, 也就是其他系统主动访问o2oa系统。

如果把o2oa作为门户, 很多时候其他是把o2oa作为oauth2的 认证服客户端。
回复

使用道具 举报

发表回复

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

本版积分规则

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