主题
认证接口
认证接口,跳转到认证界面进行登录认证
接口说明
请求URL:http[s]://{认证地址}/authserver/mobile/auth
请求方式: GET
请求内容类型: application/x-www-form-urlencoded
响应内容类型: 页面重定向
请求说明
请求体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 应用id | appId | M | String | 注册应用的APPID |
请求示例
GET http[s]://[认证地址]/authserver/mobile/auth?appId=[APPID] HTTP/1.11
响应说明
页面跳转,url会带入mobile_code或mobile_token参数,旧版是mobile_token,新版是mobile_code
旧版返回地址例子
http[s]://[认证地址]/authserver/mobile/default.html#mobile_token=[TOKEN]1
新版返回地址例子
http[s]://[认证地址]/authserver/mobile/default.html#mobile_code=[CODE]1
返回参数
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 授权code | mobile_code | O | String | 新版返回,用来换取mobile_token |
| 授权token | mobile_token | O | String | 旧版返回,直接用于获取用户信息 |

