Autional Autional
API Reference GitHub autional.com →

POST /admin/oauth/clients/{client_id}/rotate-secret

Generates a new secret for a specified client; the old secret is immediately invalidated (moved to history table, still verifiable for 4 hours).

OAuth Client Management `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
client_id path string Yes Client ID

Responses

StatusDescriptionSchema
200New secret (includes new_secret, returned once)dto.RotateSecretDetailResponse
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.RotateSecretDetailResponse

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

dto.RotateSecretResponse

FieldTypeRequiredExampleConstraintsDescription
client_id string No
new_secret string No
rotated_at string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No