- 公共功能
- 登录注册
- 工作区
- 邀请成员
- 通讯录(用户、部门、角色)
- 应用包
- 应用分组
- 应用
- 工作台
- 应用设置(表单引擎,流程引擎,拓展设置,应用发布)
- 应用展现层
- 公式
- 个人中心
- 企业管理
- 开放平台
- 官方网站
- 子管理员
- 报表
- 门户
- 购买相关
- OCR
- 代码生成
- 数据导入
- 流程测试
- 考勤
- 农业大屏
- 应用模板商城
- 应用包上线配置
- study
- 站内信
- sand测试流程测试模板
- 测试接口
- 响水大屏
- tplus
- 协办
- 费用管控
- 首页相关内容
- pm
- 水产养殖
- 应用商城
- 联系我们
- 图零后台管理
- 知识库
- doris相关
- Ai后台管理
- CRM二
- 自建应用设置
- EHR二期
- APP应用测试
- 未命名接口GET
- 数据上报GET
配置添加
开发中
POST
/enterprise/globalAuthCreate
暂无描述
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
object {0}
示例
{
"title":"配置名称",
"globalAuthType":1,
"basicAuthConfig":{
"userName":"",
"password":""
},
"apiKeyConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"temporaryTokenConfig":[
{
"bodyType":1,
"expiresIn":7200,
"globalAuthId":1,
"headers":[
{
"key":"",
"value":"",
"type":1,
},
],
"paramInvalidType":1,
"paramsterConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"queryParams":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultFormatPath":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultType":1,
"url":"",
"urlEncodedValue":"",
"jsonValue":"",
"xmlValue":""
},
],
"oauthConfig":[
{
"basicConfig":{
"clientId":"",
"clientSecret":""
},
"beingAuthorized": true,
"parameterConfig":{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
"refreshTokenConfig":{
"params":[
{
"key":"",
"value":"",
"type":1,
},
],
"accessToken":"",
"refreshToken":"",
"refreshTokenExpireType":1,
"refreshTokenExpireValue":"7200",
"refreshTokenExpiresIn":7200,
"refreshTokenUint":0,
"tokenExpireType":1,
"tokenExpireValue":"7200",
"tokenExpireIn":7200,
"url":"",
},
"requestTokenConfig":{
"accessToken":"",
"refreshToken":"",
"headerParam":[
{
"key":"",
"value":"",
"type":1,
},
],
"jsonValue":"",
"method":"POST",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":""
},
"requestUserAuthConfig":{
"codeName":"code",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":"",
"state":""
}
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.tolink.cloud/enterprise/globalAuthCreate' \
--header 'Content-Type: application/json' \
--data-raw '{
"title":"配置名称",
"globalAuthType":1,
"basicAuthConfig":{
"userName":"",
"password":""
},
"apiKeyConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"temporaryTokenConfig":[
{
"bodyType":1,
"expiresIn":7200,
"globalAuthId":1,
"headers":[
{
"key":"",
"value":"",
"type":1,
},
],
"paramInvalidType":1,
"paramsterConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"queryParams":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultFormatPath":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultType":1,
"url":"",
"urlEncodedValue":"",
"jsonValue":"",
"xmlValue":""
},
],
"oauthConfig":[
{
"basicConfig":{
"clientId":"",
"clientSecret":""
},
"beingAuthorized": true,
"parameterConfig":{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
"refreshTokenConfig":{
"params":[
{
"key":"",
"value":"",
"type":1,
},
],
"accessToken":"",
"refreshToken":"",
"refreshTokenExpireType":1,
"refreshTokenExpireValue":"7200",
"refreshTokenExpiresIn":7200,
"refreshTokenUint":0,
"tokenExpireType":1,
"tokenExpireValue":"7200",
"tokenExpireIn":7200,
"url":"",
},
"requestTokenConfig":{
"accessToken":"",
"refreshToken":"",
"headerParam":[
{
"key":"",
"value":"",
"type":1,
},
],
"jsonValue":"",
"method":"POST",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":""
},
"requestUserAuthConfig":{
"codeName":"code",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":"",
"state":""
}
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
id
integer
必需
msg
string
必需
示例
{
"code": 0,
"data": {
"id": 4
},
"msg": "success"
}
🟢200错误
修改于 2023-06-08 08:07:06