简要描述:
- 验证Token是否合法
接口版本:
| 版本号 | 制定人 | 制定日期 | 修订日期 |
|---|---|---|---|
| 1.0.0 | 朱小乾 | 2022-03-18 |
请求URL:
- /api/Login/CheckToken
请求方式:
- Get
请求头:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| Content-Type | 是 | string | 请求类型: application/json |
| Equipment | 否 | string | 设备类型(guide-pc :导检台pc;caller-pc :叫号端PC;guide-pad :导检台Pad;caller-pad :叫号端Pad;manage:管理后台) |
请求参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| token | 是 | string | token |
返回示例:
正确时返回:
{"code": 1,"message": "验证成功","data": [{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "aud","value": "http://localhost:5000","valueType": "http://www.w3.org/2001/XMLSchema#string"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "iss","value": "http://localhost:5000","valueType": "http://www.w3.org/2001/XMLSchema#string"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "name","value": "123456","valueType": "http://www.w3.org/2001/XMLSchema#string"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "id","value": "1","valueType": "http://www.w3.org/2001/XMLSchema#string"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "role","value": "1,2","valueType": "http://www.w3.org/2001/XMLSchema#string"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "sub","value": "password","valueType": "http://www.w3.org/2001/XMLSchema#string"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "nbf","value": "1647586820","valueType": "http://www.w3.org/2001/XMLSchema#integer"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "exp","value": "1647594020","valueType": "http://www.w3.org/2001/XMLSchema#integer"},{"issuer": "http://localhost:5000","originalIssuer": "http://localhost:5000","properties": {},"subject": null,"type": "iat","value": "1647586820","valueType": "http://www.w3.org/2001/XMLSchema#integer"}]}
错误时返回:
{"code": 3,"message": "用户名或密码错误","data": null}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
备注:
获取的accessToken作为权限验证token,调用其他接口是放在请求头中
格式为:”Authorization”:”Bearer “+ accessToken (Bearer后面有空格)
文档更新时间: 2022-03-18 15:27