文档
测试

短信验证码登录

POST
http://pigx-gateway:9999/auth/oauth2/token?mobile=APP-SMS@15886440547&code=2360&grant_type=mobile&scope=server

接口描述

小程序登录

请求头

参数名
类型
描述
必填
Authorization
String
Basic {AUTH}(client_id,client_secret使用base64加密)
必填
CLIENT-TOC
String
Y(固定写法)
必填
TENANT-ID
Long
租户id(现在没分 固定写1)
必填

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
mobile
String
APP-SMS@{phone} (APP-SMS@+手机号)
必填
code
String
验证码
必填
grant_type
String
mobile (固定写法)
必填
scope
String
server
必填

响应参数

参数名
类型
描述
必填
sub
string
示例:oPQsVs9DT6aeKIsrlXBFd5eCXvoo
必填
iss
string
示例:https://pig4cloud.com
必填
active
boolean
示例:true
必填
token_type
string
token的前缀,示例:Bearer
必填
client_id
string
示例:mini
必填
access_token
string
接口认证标识,示例:f7eb1287-2f8b-4e64-8822-9de7ff3b747e
必填
aud
array
数据列表
必填
license
string
示例:https://pig4cloud.com
必填
nbf
float
示例:1699599158.63
必填
user_id
int
用户id,示例:1722566839173509000
必填
scope
array
数据列表
必填
exp
float
示例:1859599158.63
必填
expires_in
int
示例:160000000
必填
iat
float
示例:1699599158.63
必填
jti
string
示例:c5fe7fcb-6fc8-451b-a7a6-b7aa9443bfca
必填
username
string
用户名称,示例:oPQsVs9DT6aeKIsrlXBFd5eCXvoo
必填