Autional Autional
API Reference GitHub autional.com →

POST /oauth/device/verify

User enters user_code in browser and approves/denies device authorization. Requires JWT authentication. Reference: RFC 8628 §3.3 (User Interaction).

OAuth `bearerAuth` application/json

Request Body

Schema: dto.DeviceAuthorizationVerifyRequest

FieldTypeRequiredExampleConstraintsDescription
user_code string Yes BDJW-DSXQ
approve boolean No True

Responses

StatusDescriptionSchema
200Authorization result (device authorized or device authorization denied)gitee_com_linmes_authms_base_dto.SimpleResponse
400Invalid request parameters: user_code invalid/expired/already processedgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated: provide a valid Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
404user_code not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server error: failed to update device authorization statusgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No