版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

  1. 本授权功能需接入方企业先在营销云开通 “数据集成” 模块,并获得 “自建应用” 的使用权限。

  2. 自建应用内申请开通 编辑器 → 自定义接口鉴权,后续联系管理员审核通过。应用配置界面如下:



    添加后,点击“编辑”进入对应设置页


    注意:此处如果需要自定义外部的校验参数,需勾选”外部接口回调“选项进行配置,具体配置如下




  3. 完成配置后,点击“保存”即可。

  4. 在编辑器中,可在作品预览页面开启作品访问限制鉴权,或在活动玩法配置中对应限制选项中进行配置,配置界面如下:



  5. 此配置案例下,在用户访问作品时,会调用主办方配置的鉴权接口,发送在数据集成自定义接口鉴权中配置好的字段,通过接口返回结果来判断用户是否具有作品访问资格。

外部接口鉴权api参数说明

外部接口请求方法请求参数返回结构请求示例
获取鉴权条件GET-


代码块
languagejs
linenumberstrue
collapsetrue
{
	"code": "200",
	"msg": "ok",
	"data": [
		{
			"label": "范围",
			"type": "area",
			"value": "",
			"children": [
				{
					"value": "80"
				},
				{
					"value": "100"
				}
			]
		},
		{
			"label": "性别",
			"type": "checkbox",
			"value": "",
			"children": [
				{
					"label": "男",
					"value": "1"
				},
				{
					"label": "女",
					"value": "2"
				}
			]
		},
		{
			"label": "部门",
			"value": "",
			"type": "select",
			"children": [
				{
					"label": "A部门",
					"value": "a"
				},
				{
					"label": "B部门",
					"value": "b"
				},
				{
					"label": "C部门",
					"value": "c"
				}
			]
		},
		{
			"label": "年龄",
			"type": "number",
			"value": "18",
			"children": []
		},
		{
			"label": "分类",
			"type": "cascader",
			"value": "",
			"children": [
				{
					"label": "项目分组",
					"value": "project_group",
					"children": [
						{
							"label": "新客户",
							"value": "1"
						},
						{
							"label": "未成交老客户",
							"value": "2"
						}
					]
				},
				{
					"label": "经纪人分组",
					"value": "broker_group",
					"children": [
						{
							"label": "自由合伙人",
							"value": "9004"
						},
						{
							"label": "代理公司",
							"value": "9003"
						}
					]
				}
			]
		}
	]
}

参数说明

label:标签名称

value:标签值

type:文本 text,数值 number,多选 select,单选 checkbox,区间 area ,级联 cascader

children:子集(只有在级联、多选、单选、区间类型时才不为空)

https://editor.test.rabbitpre.com/api/editor/proxy

/thirddata/api/

mingyuanyun

xxx/cms/getAuthConditions

保存通知接口POST



{

//当前用户id

"userId": "xxxxxx",

//当前玩法id
"componentId": "xxxxxxxxx",

//外部配置id

"externalConfigId": "",

//选择的节点(鉴权条件接口获取的节点)

"treeNodes": [{"label":"",“value”:""}],

//玩法类型

"sceneType": "Award",

// 外部参数运算符,选项有“ALL”和“IN”,分别对应满足全部与其中之一 "externalConfigOperator": "ALL", // 外部参数values,值为List<List<string>>的解构,为所选参数的value集合

"externalConfigValues": [["shenzhen"],["guangzhou"]],

}


代码块
languagejs
{
	"code:" 200,
	"data": {
		// 外部接口返回的配置id
		"configId": "xxxxx"
	}
}


https://editor.test.rabbitpre.com/api/editor/proxy/

thirddata/api/mingyuanyun/cms/saveNotice

入参:


{
"treeNodes": [
{
"label": "经纪人分组",
"value": "broker_group",
"type": null,
"children": [
{
"label": "公务员或企事业单位人员",
"value": "7000661",
"type": null,
"children": []
}
]
}
],
"externalConfigId": "",
"userId": "63fe7339-f4a5-412a-9676-1c15a2ffdecf",
"componentId": "93e0d4e1-e8e6-4451-88a4-355585d4d28f",
"sceneType": "Award"
}









鉴权接口协议:

鉴权接口完整URL:自建应用方自己的 domain+URI

...