Autional Autional
API Reference GitHub autional.com →

POST /admin/oauth/clients/{client_id}/clone

Clones a specified client and returns new credentials (client_secret returned once). Retains the original client's redirect_uris, scopes, grant_types, JWKS, etc.

OAuth Client Management `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
client_id path string Yes Source client ID

Responses

StatusDescriptionSchema
201New client (includes client_id and client_secret)dto.CloneClientDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated: provide a valid Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissions: administrator role requiredgitee_com_linmes_authms_base_dto.SimpleResponse
404Client not found or does not belong to the current tenantgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CloneClientDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.CloneClientResponse No
message string No
timestamp string No

dto.CloneClientResponse

Result of cloning a client, contains the new client's secret (returned only once)

FieldTypeRequiredExampleConstraintsDescription
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

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No