- 快速开始
- 身份源(Connection)
- 应用(Client)
- 资源服务器(ResourceServer)
- 用户(User)
- 角色(Role)
- 分组(Group)
- 租户(Tenant)
- 组织(Organization)
- 动作(Action)
- 授权(Grant)
- 应用授权(ClientGrant)
- 日志(Log)
- 自定义域名(CusomDomain)
- 密钥(Key)
- 任务(Job)
- 多因素认证(MFA)
- 安全防护(AttackProtection)
- 品牌化(Branding)
获取身份源列表
GET
/api/v1/connections
身份源
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
page
integer
页码
示例值:
1
page_size
integer
可选
示例值:
10
sort
string
可选
示例值:
-created_at:name
fields
string
可选
strategy_type
string
身份源类型
示例值:
social
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://..authok.cn/api/v1/connections'
返回响应
🟢200成功
application/json
Body
meta
object (PageMeta)
必需
page
integer
页码
page_size
integer
每页显示数量
total
integer
记录总数
items
array[object (Connection) {7}]
必需
id
string
身份源ID
name
string
身份源唯一标识
strategy
string
必需
display_name
string | null
可读名称
options
object
必需
metadata
object | null
必需
enabled_clients
array[string]
开启的应用
示例
{
"meta": {
"page": 1,
"page_size": 20,
"total": 100
},
"items": [
{
"id": "con_3j2ijiofjoiej",
"name": "wechat:pc",
"strategy": "wechat:pc",
"display_name": "微信PC登录",
"enabled_clients": [
"3j2932o3ij4jo",
"3u29fjj2o3ji3"
]
},
{
"id": "80",
"name": "量压计人",
"strategy": "magna laboris ut cillum",
"display_name": "市你活",
"enabled_clients": [
"esse adipisicing aliqua",
"amet minim ea",
"sunt dolor aliqua",
"ea dolor aute deserunt cupidatat"
]
}
]
}