员工身份验证接口
访问服务端API获得access_token
请求方式
GET (HTTPS)
请求地址
text
https://oauth.yideamobile.com/sso/<企业标识>/simple/token?token={jwt}&platform=MOBILE_EMPLOYEE参数说明
| 参数 | 是否必须 | 参数类型 | 说明 |
|---|---|---|---|
| 企业标识 | 是 | String | 传入企业标识 |
| token | 是 | String | token为jwt格式,根据单点登录的文档生成,其中包含员工工号或员工手机号, 请参考附加信息章节 |
| platform | 是 | String | 传入固定值:MOBILE_EMPLOYEE |
返回结果
json
{
"access_token": "xxxxxx",
"expires_in": 7200,
"token_type": "Bearer"
}| 参数 | 参数类型 | 说明 |
|---|---|---|
| access_token | String | 身份认证服务为调用者颁发的access_token |
| expires_in | Int | access_token超时时间(秒) |
| token_type | String | access_token的认证类型 |
附加信息
打开PC端易点易动固定资产管理系统-系统设置-系统集成-单点登录集成页面,可在单点登录集成页面查看企业标识
生成jwt的方法,可查看开发文档:开发指南