用户名密码登录
POST/auth/v1/signin
用户名密码登录使用username和password; 手机号验证码登录,username+verification_token
Request
Query Parameters
client_id string
应用对应的客户端id,默认为环境id,可以不传
Header Parameters
x-device-id stringrequired
设备id
- application/json
Body
username 用户名 (string)required
password password 密码 (string)
verification_token 通过手机验证码登录: 验证码TOKEN (string)
Responses
- 200
- 500
A successful response.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
token_type token类型, 如Bearer类型 (string)
access_token 获取的jwt access_token (string)
refresh_token access_token对应的refresh_token, access_token过期可通过refresh_token刷新获取新的access_token (string)
id_token 用户身份信息的声明 (string)
expires_in int32
scope 授权范围 (string)
sub 用户的唯一id (string)
groups string[]
{
"token_type": "string",
"access_token": "string",
"refresh_token": "string",
"id_token": "string",
"expires_in": 0,
"scope": "string",
"sub": "string",
"groups": [
"string"
]
}
An unexpected error response.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
error 错误信息 (string)
error_code int32
error_description 错误描述 (string)
{
"error": "string",
"error_code": 0,
"error_description": "string"
}
Loading...