Autional Autional
API Reference GitHub autional.com →

POST /auth/generate-ticket

Generate a one-time login ticket for a specified user (valid for 5 minutes, single use), for SSO redirect or admin proxy login. Requires JWT authentication, called by admin or system.

Authentication `bearerAuth` application/json

Request Body

Schema: dto.GenerateTicketInput

FieldTypeRequiredExampleConstraintsDescription
user_id string Yes usr_abc123 User ID
tenant_id string No tnt_xyz789 Tenant ID

Responses

StatusDescriptionSchema
200Ticket generated, returning ticket and expiration timedto.GenerateTicketResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated or invalid tokengitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.GenerateTicketResponse

Web3 wallet login ticket

FieldTypeRequiredExampleConstraintsDescription
expires_in integer No 300
ticket string No a1b2c3d4e5f6...

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No