A AuthMS API Wiki API Reference iam.tianv.com →

POST /oauth/device/verify

用户在浏览器中输入 user_code 并批准/拒绝设备授权。需要 JWT 认证。参考:RFC 8628 §3.3 (User Interaction)。

OAuth `bearerAuth` application/json

Request Body

Schema: dto.DeviceAuthorizationVerifyRequest

FieldTypeRequiredExampleConstraintsDescription
approve boolean Yes True
user_code string Yes BDJW-DSXQ

Responses

StatusDescriptionSchema
200授权结果(device authorized 或 device authorization denied)gitee_com_linmes_authms_base_dto.SimpleResponse
400请求参数错误:user_code 无效/过期/已处理gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证:请提供有效的 Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
404user_code 未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误:更新设备授权状态失败gitee_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