o-auth-2-controller
Save OAuth2 Client (saveOAuth2Client)
Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.
post/api/oauth2/client
Request body
Example request
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "DEVICE"
},
"createdTime": 1746028547220,
"additionalInfo": {},
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"mapperConfig": {
"basic": {
"tenantNamePattern": "%{email}"
}
}
}Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "DEVICE"
},
"createdTime": 1746028547220,
"additionalInfo": {},
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"mapperConfig": {
"basic": {
"tenantNamePattern": "%{email}"
}
}
}