/admin/oauth/clients/{client_id}/cloneClones a specified client and returns new credentials (client_secret returned once). Retains the original client's redirect_uris, scopes, grant_types, JWKS, etc.
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
client_id |
path |
string |
Yes | Source client ID |
| Status | Description | Schema |
|---|---|---|
| 201 | New client (includes client_id and client_secret) | dto.CloneClientDetailResponse |
| 400 | Invalid request parameters | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | Unauthenticated: provide a valid Bearer Token | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 403 | Insufficient permissions: administrator role required | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 404 | Client not found or does not belong to the current tenant | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | Internal server error | gitee_com_linmes_authms_base_dto.SimpleResponse |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.CloneClientResponse |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
Result of cloning a client, contains the new client's secret (returned only once)
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
client_auth_methods |
string |
No | ["client_secret_basic","private_key_jwt"] |
||
client_id |
string |
No | app-456 |
||
client_secret |
string |
No | secret_xyz789 |
||
cors_origins |
array of string |
No | ['["https://app.example.com"]'] |
||
fapi_profile |
string |
No | fapi1 |
||
grant_types |
array of string |
No | ['["authorization_code"', '"refresh_token"]'] |
||
id |
string |
No | 01JNXXXXX... |
||
jwks_uri |
string |
No | https://client.example.com/.well-known/jwks.json |
||
name |
string |
No | My Application (clone) |
||
redirect_uris |
array of string |
No | ['["https://app.example.com/callback"]'] |
||
scopes |
array of string |
No | ['["openid"', '"profile"', '"email"]'] |
||
status |
string |
No | active |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |