## 接口说明 > 用手机号+密码的登录场景 ## 接口定义 * **Header添加以下参数** ~~~ Authorization:Basic base64加密({clientId}:{clientSecret}) ~~~ > `clientId`和`clientSecret`可以在应用管理中找到 > 使用`postman`有自动生成该header参数的功能,如下图 >![](https://img.kancloud.cn/7d/3d/7d3d4ca7bd43242400cabe2de5e27afc_1563x628.png) ~~~[api] post:http://127.0.0.1:9999/authServer/oauth/token *string:mobile=18888888888#mobile *password=admin#密码 *grant_type=mobile_password#认证方式 <<< success { "msg": "", "code": 0, "data": { "access_token": "efc0d6e6-c951-4e81-a8db-3d1085295da4", "token_type": "bearer", "refresh_token": "56709efb-24b3-452b-8d57-90d99be76242", "expires_in": 21599, "scope": "all" } } <<< error { "msg": "手机号或密码错误", "code": 1, "data": null } ~~~