# 认证配置接口
参数 | 是否必须 | 说明 |
---|---|---|
id | 是 | ID类型(PRIMARY KEY)、主键只查询id=1的数据 |
client_id | 是 | 客户端ID(注册报表应用获取) |
client_secret | 是 | 客户端密钥(注册报表应用获取) |
grant_type | 是 | grant_type(默认值:authorization_code) |
hr_title | 是 | hr_title(hr11_或者铁建其他) |
logout_uri | 是 | 登出地址 |
redirect_uri | 是 | 登录成功回调地址 |
response_type | 是 | response_type(默认值) |
scope | 是 | scope(默认值:openid) |
state | 是 | state(默认值:1) |
url | 是 | 平台认证地址 |
home_page_url | 是 | 登陆成功跳转首页(某报表)地址不跳转可将该地址配置为redirect_uri |
# 接口定义
# 新增配置
method:POST
url: http://www.finereport.com/webroot/decision/db/oidc/add
param:
{
"id": "1",
"clientId": "clientId",
"clientSecret": "clientSecret",
"url": "http://oidc.glink.glkyun.com/",//平台登录地址
"responseType": "code",
"scope": "openid",
"state": "1",
"grantType": "authorization_code",
"redirectUri": "http://www.finereport.com/webroot/decision",
"logoutUri": "http://sso.crcc.cn/logout",//平台登出地址
"hrTitle": "crcc12|",
"homePageUrl": "http://www.finereport.com/webroot/decision/view/form?viewlet=jt_yyjgpt/%E9%A6%96%E9%A1%B5%E5%9C%B0%E7%90%83.frm"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
result:
{
"data": {
"id": "1",
"clientId": "clientId",
"clientSecret": "clientSecret",
"url": "http://oidc.glink.glkyun.com/",//平台登录地址
"responseType": "code",
"scope": "openid",
"state": "1",
"grantType": "authorization_code",
"redirectUri": "http://www.finereport.com/webroot/decision",
"logoutUri": "http://sso.crcc.cn/logout",//平台登出地址
"hrTitle": "crcc12|",
"homePageUrl": "http://www.finereport.com/webroot/decision/view/form?viewlet=jt_yyjgpt/%E9%A6%96%E9%A1%B5%E5%9C%B0%E7%90%83.frm"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 查询配置
method:GET
url: http://www.finereport.com/webroot/decision/db/oidc/config/1
result:
{
"data": {
"id": "1",
"clientId": "clientId",
"clientSecret": "clientSecret",
"url": "http://oidc.glink.glkyun.com/",//平台登录地址
"responseType": "code",
"scope": "openid",
"state": "1",
"grantType": "authorization_code",
"redirectUri": "http://www.finereport.com/webroot/decision",
"logoutUri": "http://sso.crcc.cn/logout",//平台登出地址
"hrTitle": "crcc12|",
"homePageUrl": "http://www.finereport.com/webroot/decision/view/form?viewlet=jt_yyjgpt/%E9%A6%96%E9%A1%B5%E5%9C%B0%E7%90%83.frm"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 删除配置
method:DELETE
url: http://www.finereport.com/webroot/decision/db/oidc/config/1
result:
{
"data": true
}
1
2
3
2
3
# 跳转配置接口
参数 | 是否必须 | 说明 |
---|---|---|
id | 是 | ID类型(PRIMARY KEY)、主键< |
url | 是 | 认证结束后跳转的详情地址地址浏览器转义后地址 |
# 接口定义
# 新增配置
method:POST
url: http://www.finereport.com/webroot/decision/db/oidc/detail/add
param:
{
"id": "2",
"url": "http://www.finereport.com/webroot/decision/view/report?viewlet=%E6%A0%87%E5%87%86%E5%9C%B0%E5%9B%BE.frm"
}
1
2
3
4
2
3
4
result:
{
"data": {
"id": "2",
"url": "http://www.finereport.com/webroot/decision/view/report?viewlet=%E6%A0%87%E5%87%86%E5%9C%B0%E5%9B%BE.frm"
}
}
1
2
3
4
5
6
2
3
4
5
6
# 查询配置
method:GET
url: http://www.finereport.com/webroot/decision/db/oidc/detail/2
result:
{
"data": {
"id": "2",
"url": "http://www.finereport.com/webroot/decision/view/report?viewlet=%E6%A0%87%E5%87%86%E5%9C%B0%E5%9B%BE.frm"
}
}
1
2
3
4
5
6
2
3
4
5
6
# 删除配置
method:DELETE
url: http://www.finereport.com/webroot/decision/db/oidc/detail/2
result:
{
"data": true
}
1
2
3
2
3
← 字典接口