AuthClient
Manages OAuth2 client registrations. The OAuth2 client acts on behalf of the user to request resource access permissions and securely exchange credentials for access tokens to interact with protected APIs
Query the list of oauth2 registered client
Replace oauth2 registered client
PUT
/api/v1/auth/client
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"id": "string",
"clientId": "string",
"clientSecret": "string",
"clientSecretExpiresAt": "string",
"clientName": "string",
"clientAuthenticationMethods": [
"string"
],
"authorizationGrantTypes": [
"string"
],
"redirectUris": [
"string"
],
"postLogoutRedirectUris": [
"string"
],
"scopes": [
"string"
],
"clientSettings": {
"additionalProperties": {
}
},
"tokenSettings": {
"additionalProperties": {
}
},
"description": "string",
"enabled": "true",
"platform": "XCAN_TP",
"source": "XCAN_USER_TOKEN",
"bizTag": "string",
"tenantId": "string",
"tenantName": "string"
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Add oauth2 registered client
POST
/api/v1/auth/client
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"id": "string",
"clientId": "string",
"clientSecret": "string",
"clientSecretExpiresAt": "string",
"clientName": "string",
"clientAuthenticationMethods": [
"string"
],
"authorizationGrantTypes": [
"string"
],
"redirectUris": [
"string"
],
"postLogoutRedirectUris": [
"string"
],
"scopes": [
"string"
],
"clientSettings": {
"additionalProperties": {
}
},
"tokenSettings": {
"additionalProperties": {
}
},
"description": "string",
"enabled": "true",
"platform": "XCAN_TP",
"source": "XCAN_USER_TOKEN",
"bizTag": "string",
"tenantId": "string",
"tenantName": "string"
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Delete oauth2 registered clients
Update oauth2 registered client
PATCH
/api/v1/auth/client
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"id": "string",
"clientSecret": "string",
"clientSecretExpiresAt": "string",
"clientName": "string",
"clientAuthenticationMethods": [
"string"
],
"authorizationGrantTypes": [
"string"
],
"redirectUris": [
"string"
],
"postLogoutRedirectUris": [
"string"
],
"scopes": [
"string"
],
"clientSettings": {
"additionalProperties": {
}
},
"tokenSettings": {
"additionalProperties": {
}
},
"description": "string",
"enabled": "true",
"bizTag": "string"
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}