创建身份源连接
POST
/api/v2/extIdpConn
请求参数
Header 参数
Authorization
string
Token
示例值:
Bearer eyJhb
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
extIdpId
string
所属身份源 ID
type
string
必需
identifier
string
连接的唯一标识符
displayName
string
必需
fields
object
连接的详细配置信息
callbackURL
string
必需
clientID
string
必需
clientSecret
string
必需
userMatchFields
string
必需
logo
string
连接的log
示例
{
"extIdpId": "string",
"type": "string",
"identifier": "string",
"displayName": "string",
"fields": {
"callbackURL": "string",
"clientID": "string",
"clientSecret": "string"
},
"userMatchFields": "string",
"logo": "string"
}
示例代码
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://core.authing.cn/api/v2/extIdpConn' \
--header 'Authorization: Bearer eyJhb' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw '{
"extIdpId": "string",
"type": "string",
"identifier": "string",
"displayName": "string",
"fields": {
"callbackURL": "string",
"clientID": "string",
"clientSecret": "string"
},
"userMatchFields": "string",
"logo": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
type
string
必需
identifier
string
必需
displayName
string
必需
fields
object
必需
logo
string
必需
userMatchFields
null
必需
示例
{
"code": 200,
"message": "创建成功",
"data": {
"id": "61dff475b33b0c839bdeb254",
"type": "wechat:pc",
"identifier": "sdfsdf",
"displayName": "displayName",
"fields": {
"callbackURL": "111",
"clientID": "222",
"clientSecret": "333"
},
"logo": "https://files.authing.co/authing-console/social-connections/icon_pcwexin@2x.png",
"userMatchFields": null
}
}
修改于 2022-01-14 11:07:12