登录验证¶
功能说明¶
由用户客户端(浏览器)重定向到该url,根据授权码判断用户,信任登录到关爱通平台
接口地址¶
- 测试环境: https://openapi.guanaitong.tech/sso/employee/login
- 生产环境: https://openapi.guanaitong.com/sso/employee/login
HTTP请求方式¶
- Method: GET
- Content-Type: application/x-www-form-urlencoded
参数说明¶
-
公有参数
发送请求是必须传入公共参数,详见公共参数
-
私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
|---|---|---|---|---|
| auth_code | 是 | string | [64] | 授权码,只能使用一次,并且有效期为1分钟(正式),失效请重新获取 |
| redirect_url | 否 | string | [1,100] | 关爱通具体应用页面的url,可联系对接人 |
| redirect_code | 否 | string | [8] | 具体对接应用的appCode ,比如 10000446 代表关爱商城 ,其他编码联系对接人 |
| scene_code | 否 | string | [0,100] | 场景编码: geidao_h5 代表给到首页,gmall 代表关爱商城,daxin_h5 代表答心首页,jingjing_h5 代表静静首页,其他编码联系对接人 |
请求示例(跳转的URL)¶
### 根据地址做信任登录
https://openapi.guanaitong.tech/sso/employee/login?redirect_url=https://m.igeidao.tech
&auth_code=347AB8E5C0B62FAD63EFF95CEB3930CA0883C1F1
### 根据落地应用code做信任登录
https://openapi.guanaitong.tech/sso/employee/login?redirect_code=10000446
&auth_code=347AB8E5C0B62FAD63EFF95CEB3930CA0883C1F1
### 根据场景码做信任登录
https://openapi.guanaitong.tech/sso/employee/login?scene_code=geidao_h5
&auth_code=347AB8E5C0B62FAD63EFF95CEB3930CA0883C1F1