Path: /login/signin/logon
Method: POST
接口描述:
RSA对AES密钥加密,作为请求参数
AES对敏感数据加密,做为请求参数
前端每次请求自动生成AES密钥,并使用AES对请求参数中的敏感信息进行加密,格式为:
1\. 账号密码登录
{
"username": "用户名",
"password": "密码"
}
2. 手机号密码登录
{
"mobilePhone": "手机号",
"password": "密码"
}
3. 手机号验证码登录
{
"mobilePhone": "手机号",
"verificationCode": "验证码"
}
注意:密文全部使用BASE64编解码
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/x-www-form-urlencoded | 是 |
Body
| 参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| explorer | text | 是 | ||
| operatingSystem | text | 是 | Windows | |
| rtnURL | text | 是 | ||
| serviceName | text | 是 | 手机验证码登录时为mobileVerificationCodeLogin,其他情况为随机码 | |
| rp | text | 是 | 不同登录方式的主要信息,包含用户名、密码、手机号、验证码 | |
| sk | text | 是 | 使用公钥对AES密钥进行加密,加密后的字符串 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | |||
| ├─ username | string | 非必须 | |||
| ├─ rtnURL | string | 非必须 | |||
| ├─ randomNum | string | 非必须 | |||
| ├─ loginnum | string | 非必须 | |||
| ├─ url | string | 非必须 | |||
| ├─ lightingWebUrl | string | 非必须 | |||
| ├─ version | string | 非必须 | |||
| ├─ currDay | string | 非必须 | |||
| ├─ upgrade | boolean | 非必须 | |||
| ├─ upgradeDescribe | null | 非必须 | |||
| ├─ upgradeTitle | null | 非必须 | |||
| ├─ freshToken | string | 非必须 | |||
| ├─ accessToken | string | 非必须 | |||
| ├─ language | string | 非必须 | |||
| ├─ passwordExpire | boolean | 非必须 | 该参数代表是否首次登录修改密码和过期修改密码 | ||
| ├─ autoRegister | boolean | 非必须 | |||
| ├─ gatewayUrl | string | 非必须 | |||
| ├─ partneraddress | null | 非必须 | |||
| ├─ pageOverTime | string | 必须 | mfa返回 | ||
| ├─ mfaRandomKey | string | 必须 | mfa返回 | ||
| ├─ mfaRandom | string | 必须 | mfa返回 | ||
| ├─ qrCode | string | 必须 | mfa返回 | ||
| ├─ binding | string | 必须 | mfa返回 | ||
| ├─ status | string | 必须 | mfa返回 | ||
| requestId | string | 非必须 | |||
| returnCode | string | 非必须 | |||
| returnInfo | string | 非必须 | |||
| customInfo | null | 非必须 | |||
| result | boolean | 非必须 | |||
| stackTrace | null | 非必须 | |||
| errorSQL | null | 非必须 |
Path: /api/srcLogin/modifyPwWhenFirLog
Method: POST
接口描述:
使用RSA+AES混合密码对敏感信息进行加密
前端生成AES密钥,使用RSA对AES密钥加密
AES对敏感数据进行加密
{
"newPassword": "新密码",
"oldPassword": "旧密码",
"modifyPwType": ""
}
modifyPwType为autoRegister时,不需要oldPassword参数
注意:密文都使用BASE64进行编码
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| sk | string | 非必须 | RSA加密的AES秘钥 | ||
| rp | string | 必须 | AES加密的请求数据 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | boolean | 非必须 | |||
| data | object | 非必须 | |||
| ├─ accessToken | string | 非必须 |
Path: /api/mobileNoBinding/sendMessageForLogin
Method: POST
接口描述:
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| mobile | string | 非必须 | |||
| lang | string | 非必须 | |||
| countryCode | string | 非必须 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | |||
| ├─ result | boolean | 非必须 | |||
| requestId | string | 非必须 | |||
| returnCode | string | 非必须 | |||
| returnInfo | string | 非必须 | |||
| customInfo | null | 非必须 | |||
| result | boolean | 非必须 | |||
| stackTrace | null | 非必须 | |||
| errorSQL | null | 非必须 |
Path: /api/mobileNoBinding/getPasswordPolicy
Method: POST
接口描述:
pswComplexReq:0代表无要求,1代表包含字母和数字,2代表必须包含大小写字母及数字,3代表必须包含大小写字母及数字和符号
minPswLength 最小密码长度
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| mobile | string | 非必须 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | |||
| ├─ result | string | 非必须 | |||
| ├─ pswComplexReq | string | 非必须 | |||
| ├─ minPswLength | string | 非必须 | |||
| requestId | string | 非必须 | |||
| returnCode | string | 非必须 | |||
| returnInfo | null | 非必须 | |||
| customInfo | null | 非必须 | |||
| result | boolean | 非必须 | |||
| stackTrace | null | 非必须 | |||
| errorSQL | null | 非必须 |
Path: /api/emailObject/sendEmailForChangePassword
Method: POST
接口描述:
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| loginName | string | 非必须 | |||
| lang | string | 非必须 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|
Path: /api/mobileNoBinding/sendMessageForChangePassword
Method: POST
接口描述:
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| mobile | string | 非必须 | |||
| lang | string | 非必须 | |||
| countryCode | string | 非必须 |
Path: /ccsetup/api/accessApi/login/userPwModify
Method: POST
接口描述:
使用RSA+AES混合密码对敏感信息进行加密
前端生成AES密钥,使用RSA对AES密钥加密
AES对敏感数据进行加密
{
"newPassword": "新密码",
"oldPassword": "旧密码",
"modifyPwType": ""
}
注意:密文都使用BASE64进行编码
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 | ||
| accessToken | eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2ZXJzaW9uVHlwZSI6IlVubGltaXRlZCIsImF1ZCI6ImNsb3VkY2MiLCJsb2dpbk5hbWUiOiJsaXV0ZXN0MUBub2tpYS1zYmVsbC5jb20iLCJiaW5kaW5nIjoiY2VjYTg5MDBjOGYwNDExNjg1ZjMzNWM0NDA3MDU5NzMiLCJ1c2VySWQiOiIwMDUyMDIzNjBGMzdBQUJUY3kzSyIsIm9yZ0lkIjoiZXhvcmcyMDIzMjg2OTY5N3Rlc3QifQ.0wDX5TKTkuOQh9YeSKcQ_6O52ofDcWf7sLL4-uQnoDI | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| sk | string | 必须 | RSA对AES密钥加密后的密文 | ||
| rp | string | 必须 | AES加密后的请求参数 |
Path: /api/mobileNoBinding/userPwModify
Method: POST
接口描述:
使用RSA+AES混合加密方式对敏感信息进行加密
前端动态生成AES密钥,RSA对AES密钥进行加密
前端使用AES对敏感信息进行加密,格式如下:
邮箱验证方式:
{
"loginName": "登录名",
"newPw": "新密码",
"verificationCode": "验证码"
}
手机号验证方式:
{
"mobile": "手机号",
"newPw": "新密码",
"verificationCode": "验证码"
}
注意:密文使用BASE64进行编解码
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| sk | string | 非必须 | RAS对AES密钥加密后的密文 | ||
| rp | string | 非必须 | AES对敏感信息加密后的密文 | ||
| lang | string | 非必须 | |||
| noCheckOldPw | string | 非必须 | 固定值 “1” |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|
Path: /api/srcLogin/getMFAQrCodeImg
Method: POST
接口描述:
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| code | string | 必须 | 登录接口返回的qrCode | ||
| multipleCode | string | 非必须 | 传"true"就行 | ||
| rSize | string | 必须 | 传650就行,图片的宽和高 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|
Path: /api/srcLogin/mfaVerification
Method: POST
接口描述:
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| verificationCode | string | 非必须 | MFA验证码 | ||
| mfaRandomKey | string | 非必须 | 随机key | ||
| mfaRandom | string | 非必须 | 随机数 | ||
| binding | string | 非必须 | 登录标识 |