用户登录(用户名密码)
POST
/oauth/token最后修改时间: 10 个月前
请求参数
Cookie 参数
autologin_trustie
string
可选
示例值:
89968cdf00f5d75ffd06e679402a646ba2fa7671
Body 参数application/json
grant_type
enum<string>
鉴权类型
枚举值:
password
默认值:
password
username
string
必需
refresh_token
password
string
必需
client_id
string
ClientID
client_secret
string
必需
ClientSecret
示例
{
"grant_type": "password",
"username": "xxxxxxxxxxxxxx",
"password": "xxxxxxxxxxxxxx",
"client_id": "7",
"client_secret": "ea tempor in anim"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
access_token
string
必需
token_type
string
必需
expires_in
integer
必需
refresh_token
string
必需
scope
string
必需
created_at
integer
必需
示例成功示例
{
"access_token": "eyJraWQiOiJUaEVSLVl3Ukg4TWYwOHM0UnJLUDYzXzZLWmVET2NZckZXcmdzN2VUVWdrIiwiYWxnIjoiSFM1MTIifQ.eyJpc3MiOiJHaXRMaW5rIiwiaWF0IjoxNjc1OTI5NTAxLCJqdGkiOiI1Yjg2ZDNjMi1hODA0LTQyNjEtYWFjYi1jZDg0YzM5ZjBiM2MiLCJ1c2VyIjp7ImlkIjo4NDcyNywibG9naW4iOiJ5eXN0b3BmMTIzIiwibWFpbCI6Ijk3ODY2MDQxNEBxcS5jb20ifX0.JxgzogjKZlRsTpB3Gy37_D2y5wP847X0NKYCdInm7TDwpzR8PPm9RXBfWpOe2riKHA9RTdUREG0dHjDCMNnaWQ",
"token_type": "Bearer",
"expires_in": 604799,
"refresh_token": "DkE20crBDMVK4yfqMdte15DvR-dQpZciuP-z3jl3kaM",
"scope": "public",
"created_at": 1675929501
}
最后修改时间: 10 个月前