Skip to content

登录认证管理 ​

版本说明 ​

版本更新时间更新负责人更新内容
v1.0彭业庆
v1.12022-02-17彭业庆1、更换新的接口地址:https://api-one.digitalhainan.com.cn/apione<br/>2、请求头带上必填项:Uaa-Tenant-Id<br/>3、region = “PUBLIC” 改成 region = “INTER”
v1.22022-02-20彭业庆1、新增接口:<br/>修改当前用户密码;<br/>首次登录修改初始密码和补录手机号<br/>2、登录接口新增返回字段<br/>
v1.32022-03-28彭业庆1、人员所属组织列表接口新增返回字段,所属单位id:unitId;<br/>2、废弃“获取用户所属组织下人员分页列表”接口<br/>3、废弃“获取指定机构下的人员列表”接口
v1.42022-06-16彭业庆1、“人员所属组织列表接口”和“根据父级机构获取下级机构列表接口”新增返回字段,行政区划编码:areaCode;行政区划名称:areaName;统一信用代码:unifiedSocialCreditCode;<br/>
java
//引入接口平台依赖包
<dependency>
    <groupId>cn.com.digitalhainan</groupId>
    <artifactId>apione-http-client</artifactId>
    <version>hzt-1.0.11-RELEASE</version>
</dependency>

或者通过导入依赖包:apione-http-client-hzt-1.0.11-RELEASE.jar

登录 ​

接口名称登录
接口描述登录
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaLoginTest
生产API名称uaaLogin
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Uaa-Tenant-Id租户idString是默认:1
字段名称字段说明类型必填备注
appKeyappKeyString是统一认证发放的appKey
appSecretappSecretString是统一认证发放的appSecret
account账号String是
password密码String是

请求示例 ​

json
String contentJson = "{\"appKey\":\"\",\"appSecret\":\"\",\"account\":\"\",\"password\":\"\"}";
String ak = "";  //开放平台发放的accessKey
String sk = "";	 //开放平台发放的secretKey
String api = "uaaLoginTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)	
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
token主tokenString是
refreshToken刷新tokenString否默认不返回
expiredIn主token过期时间单位秒Number是
addPhone是否需要补录手机号Boolean是
resetPassword是否需要重置密码Boolean是
userId用户idString是
username账号String是
displayName昵称String是

成功返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": true,
    "code": null,
    "message": null,
    "data": {
        "token": "xxx",
        "refreshToken": "xxx",
        "expiredIn": 604800,
      	"username": "xx",
    		"displayName": "xx",
      	"userId": "xx",
    		"addPhone": false,
    		"resetPassword": true
    },
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_USER_ACCT_PWD_WRONG",
    "message": "账号或者密码错误",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

token获取用户详情 ​

接口名称token获取用户详情
接口描述token获取用户详情
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaUserDetailByTokenTest
生产API名称uaaUserDetailByToken
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
AuthorizationString是Bearer xxx
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1

请求示例 ​

java
String contentJson = "";
String ak = "";  // 开放平台发放的accessKey
String sk = "";  // 开放平台发放的secretKey
String api = "uaaUserDetailByTokenTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxx");  // xxx需要替换成统一认证平台的token
header.put("Uaa-App-Key", "xx");	// xx需要替换成统一认证平台的appKey
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)	
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
userId用户idString是
account账户String是
nickName显示名称String是
phone手机号String否
email邮箱String否
externalId外部系统用户idString否
enable是否启用Boolean是
createTime创建时间String是格式:2020-01-02 11:00:00
extendMap扩展属性String否例如:{“gender”:“男”,“age”:“13”}

成功返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": true,
    "code": null,
    "message": null,
    "data": {
        "userId": "1111",
        "account": "xx",
        "nickName": "xxx",
        "phone": "13455",
        "email": "222",
        "externalId": "xdsdd",
      	"enable":true,
      	"createTime":"2020-01-02 11:00:00",
        "extendMap":"{\"gender\":\"男\",\"age\":\"13\"}"
    },
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

根据授权码换取token ​

接口名称根据授权码换取token
接口描述根据授权码换取token
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaOauthTokenTest
生产API名称uaaOauthToken
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
appKey应用keyString是
appSecret应用secretString是
code授权码String是
redirectUri重定向地址String是

请求示例 ​

json
String contentJson = "{\"appKey\":\"\",\"appSecret\":\"\",\"code\":\"\",\"redirectUri\":""}";
String ak = "";
String sk = "";
String api = "uaaOauthTokenTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
				.headerParamsMap(header)
				.region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
accessToken主tokenString是
expiredIn主token过期时间,单位秒Number是
refreshToken刷新tokenString是

成功返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": true,
    "code": null,
    "message": null,
    "data": {
          	"accessToken": "xxx",
            "expiredIn": 604800,
            "refreshToken": "xxx"
          },
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

获取用户已授权应用列表 ​

接口名称获取用户已授权应用列表
接口描述获取用户已授权应用列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaGetUserAuthAppsTest
生产API名称uaaGetUserAuthApps
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Authorization是Bearer xxx
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1

请求示例 ​

java
String contentJson = "入参的请求参数";
String ak = "";
String sk = "";
String api = "uaaGetUserAuthAppsTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Array否
data字段说明类型必填备注
appId应用idString是
appName应用名称String是
enable是否启用Boolean是
remark描述String否

成功返回示例 ​

json
{
	"code": "",
	"data": {
		"apps": [
			{
				"appId": "",
				"appName": "",
				"enable": true,
				"remark": ""
			}
		]
	},
	"debugMessage": "",
	"debugTrace": "",
	"extend": {},
	"message": "",
	"requestId": "",
	"success": true
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

获取用户所属组织列表 ​

接口名称获取用户所属组织列表
接口描述获取用户所属组织列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaGetUserOrgsTest
生产API名称uaaGetUserOrgs
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Authorization是Bearer xxx
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
positionType任职类型String否任职类型,默认是主职;ALL - 所有;MAIN - 主职;ADJUNCT - 非主职

请求示例 ​

json
String contentJson = "";
String ak = "";
String sk = "";
String api = "uaaGetUserOrgsTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
orgs组织列表Array否
orgId组织idString否
orgName组织名称String否
parentOrgId父级idString否
externalId外部idString否
fullNamePath组织名称路径String否
leaf是否叶子节点Boolean否
enable是否启用Boolean否
remark描述String否
sortNum序号Number否
parentIdPath父级id路径String否
unitId所属单位idString否
areaCode行政区划编码String否
areaName行政区划名称String否
unifiedSocialCreditCode统一信用代码String否
mainJob是否主职Boolean否

成功返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": true,
    "code": null,
    "message": null,
    "data": {
      	"orgs": [
          {
          	"orgId": "1111",
            "orgName": "测试111",
            "parentOrgId": "333",
            "fullNamePath": "/测试1/测试11/测试111",
            "leaf": true,
            "enable": true,
            "remark": "",
						"sortNum": 0,
            "externalId": "",
            "parentIdPath": "",
            "unitId": "",
            "areaCode": "",
            "areaName": "",
            "unifiedSocialCreditCode": "",
            "mainJob": true
          }
        ]
    },
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

获取用户已拥有角色列表 ​

接口名称获取用户已拥有角色列表
接口描述获取用户已拥有角色列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaGetUserRolesTest
生产API名称uaaGetUserRoles
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Authorization是Bearer xxx
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
pageNum第几页Number是
pageSize一页返回多少条记录Number是最大值100

请求示例 ​

json
String contentJson = "";
String ak = "";
String sk = "";
String api = "uaaGetUserRolesTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
records角色信息Array否
pageNum第几页Number是
pageSize一页返回多少条记录Number是
pages总页数Number是
total总记录数Number是
records字段说明类型必填备注
roleId角色idString否
roleCode角色编码String否
roleName角色名称String否
enable是否启用Boolean否
remark描述String否

成功返回示例 ​

json
{
    "success":true,
    "code":"0",
    "message":null,
    "data":{
        "pageNum":1,
        "pageSize":10,
        "pages":1,
        "total":1,
        "records":[
            {
                "roleId":"1234567",
                "roleCode":"role",
                "roleName":"超级管理员",
                "remark":"超级管理员",
                "enable":true
            }
        ]
    },
    "extend":null,
    "debugMessage":"",
    "debugTrace":null,
    "requestId":"0723ae5264fa46178397909ef8250cde"
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

获取用户已拥有权限资源列表 ​

接口名称获取用户已拥有权限资源列表
接口描述获取用户已拥有权限资源列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaGetUserPermissionsTest
生产API名称uaaGetUserPermissions
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Authorization是Bearer xxx
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
pageNum第几页Number是
pageSize一页返回多少条记录Number是最大值100

请求示例 ​

json
String contentJson = "";
String ak = "";
String sk = "";
String api = "uaaGetUserPermissionsTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
pageNum第几页Number是
pageSize一页返回多少条记录Number是
total总条数Number是
records用户信息列表Array否
records字段说明类型必填备注
permissionId权限资源idString否
permissionCode权限资源编码String否
permissionName权限资源名称String否
parentId父级idString否
permissionType权限资源类型Number否1:menu;2:button;3:api;4:data;5:other

成功返回示例 ​

json
{
	"code": "",
	"data": {
		"pageNum": 0,
		"pageSize": 0,
		"pages": 0,
		"records": [
			{
				"parentId": "",
				"permissionCode": "",
				"permissionId": "",
				"permissionName": "",
				"permissionType": 0,
				"remark": ""
			}
		],
		"total": 0
	},
	"debugMessage": "",
	"debugTrace": "",
	"extend": {},
	"message": "",
	"requestId": "",
	"success": true
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

退出 ​

接口名称退出
接口描述退出
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaLogoutTest
生产API名称uaaLogout
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Authorization是Bearer xxx
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注

请求示例 ​

json
String contentJson = "";
String ak = "";
String sk = "";
String api = "uaaLogoutTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否

成功返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": true,
    "code": null,
    "message": null,
    "data": null,
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

获取当前应用下已授权人员分页列表 ​

接口名称获取当前应用下已授权人员分页列表
接口描述获取当前应用下已授权人员分页列表
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaGetAuthAppUserPageTest
生产API名称uaaGetAuthAppUserPage
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
pageNum第几页Number是
pageSize一页返回多少条记录Number是最大值100
nickName姓名String否
account账号String否
phone手机号String否
enable是否启用Boolean否

请求示例 ​

json
String contentJson = "{\"pageSize\":10,\"pageNum\":1}";
String ak = "";
String sk = "";
String api = "uaaGetAuthAppUserPageTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
pageNum第几页Number是
pageSize一页返回多少条记录Number是
total总条数Number是
pages总页数Number是
records用户信息列表Array否
records字段说明类型必填备注
userId用户idString是
account账户String是
nickName显示名称String是
phone手机号String否
email邮箱String否
externalId外部系统用户idString否
enable是否启用Boolean是
createTime创建时间String是yyyy-MM-dd HH:mm:ss

成功返回示例 ​

json
{
    "success":true,
    "code":"0",
    "message":null,
    "data":{
        "pageNum":1,
        "pageSize":10,
        "pages":1,
        "total":2,
        "records":[
            {
                "userId":"xxxx",
                "account":"1234567",
                "nickName":"**",
                "phone":"xx",
                "email":null,
                "externalId":"xxx",
                "enable":true,
                "createTime":"2021-12-09 15:35:31"
            },
            {
                "userId":"xx",
                "account":"123456",
                "nickName":"吴xxx",
                "phone":"xx",
                "email":null,
                "externalId":"xx",
                "enable":true,
                "createTime":"2021-12-09 15:35:31"
            }
        ]
    },
    "extend":null,
    "debugMessage":"",
    "debugTrace":null,
    "requestId":"0c8bf2283b884a75867623a9bbaa1799"
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

刷新token ​

接口名称刷新token
接口描述刷新token
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaRefreshTokenTest
生产API名称uaaRefreshToken
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
appKey应用keyString是
appSecret应用密钥String是
refreshToken刷新tokenString是

请求示例 ​

json
String contentJson = "{\"appKey\":\"\",\"appSecret\":\"\",\"refreshToken\":\"\"}";
String ak = "";
String sk = "";
String api = "uaaRefreshTokenTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
				.headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
accessToken新tokenString是
refreshToken刷新tokenString是
expiredIntoken过期时间,单位秒Number是

成功返回示例 ​

json
{
    "success":true,
    "code":"0",
    "message":null,
    "data":{
        "accessToken":"xxx",
        "refreshToken":"xxxx",
        "expiredIn":1
    },
    "extend":null,
    "debugMessage":"",
    "debugTrace":null,
    "requestId":"0c8bf2283b884a75867623a9bbaa1799"
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

全局精准用户分页查询 ​

接口名称全局精准用户分页查询
接口描述全局精准用户分页查询
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaAccurateSearchUserPageTest
生产API名称uaaAccurateSearchUserPage
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
pageNum第几页Number是
pageSize一页返回多少条记录Number是最大值100
nickName姓名String否
account账号String否
phone手机号String否

请求示例 ​

json
String contentJson = "{\"pageSize\":10,\"pageNum\":1}";
String ak = "";
String sk = "";
String api = "uaaAccurateSearchUserPageTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
pageNum第几页Number是
pageSize一页返回多少条记录Number是
total总条数Number是
pages总页数Number是
records用户信息列表Array否
records字段说明类型必填备注
userId用户idString是
account账户String是
nickName显示名称String是
phone手机号String是脱敏返回

成功返回示例 ​

json
{
  "success": true,
  "code": "0",
  "message": null,
  "data": {
    "pageNum": 1,
    "pageSize": 10,
    "pages": 1,
    "total": 1,
    "records": [
      {
        "account": "xx",
        "phone": "1355676",
        "nickName": "xx",
        "userId": "xxx"
      }
    ]
  },
  "extend": null,
  "debugMessage": "",
  "debugTrace": null,
  "requestId": "ef79706e7b7a4ce3ac3e1ce0e171963f"
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

修改当前用户密码 ​

接口名称修改当前用户密码
接口描述修改当前用户密码
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称uaaUpdateCurrentUserPasswordTest
生产API名称uaaUpdateCurrentUserPassword
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Authorization是Bearer xxx
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
oldPassword原密码String是
newPassword新密码String是
confirmPassword确认密码String是

请求示例 ​

json
String content = "{\"oldPassword\":\"\",\"newPassword\":\"\",\"confirmPassword\":\"\"}";
String ak = "";
String sk = "";
String api = "uaaUpdateCurrentUserPasswordTest";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否

成功返回示例 ​

json
{
    "success":true,
    "code":"0",
    "message":null,
    "data":true,
    "extend":null,
    "debugMessage":"",
    "debugTrace":null,
    "requestId":"c50f0e21405c4e3e993e49dd1196e0a1"
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}

根据AK、SK获取应用ticket ​

接口名称根据AK、SK获取应用ticket
接口描述根据AK、SK获取应用ticket
接口地址https://api-one.digitalhainan.com.cn/apione
测试API名称getAppTicketTest
生产API名称getAppTicket
API版本
调用方式
http方法POST
是否需要鉴权是,授权账号参照账号信息文件
提供方统一认证系统
目前在用渠道
废弃日期

请求参数 ​

Header字段说明类型必填备注
Uaa-App-Key统一认证应用的akString是
Uaa-Tenant-Id租户idString是默认:1
Body字段说明类型必填备注
appKey应用akString是
secretKey应用skString是

请求示例 ​

json
String content = "{\"appKey\":\"\",\"secretKey\":\"\"}";
String ak = "";
String sk = "";
String api = "getAppTicket";
String region = "INTER";
String requestUrl = "https://api-one.digitalhainan.com.cn/apione";
ContentBody contentBody = new ContentBody(contentJson);
Map<String, String> header = new HashMap<>();
header.put("Authorization", "Bearer xxxx");
header.put("Uaa-App-Key", "xx");	
header.put("Uaa-Tenant-Id", "1");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
        .api(api)
        .headerParamsMap(header)
        .region(region)
        .accessKey(ak)
        .secretKey(sk)
        .contentBody(contentBody)
        .requestUrl(requestUrl)
        .build();
//请求开发服务,获取response
HttpReturn call = HttpCaller.getInstance().call(parameters);

返回参数 ​

返回参数字段说明类型必填备注
requestId请求IdString是
success状态码Boolean是状态码: true表示成功  false表示失败
code错误码String否
message响应消息String否
extend扩展响应内容Object否
debugMessage异常信息String否测试环境才返回,方便接口调试错误排查
debugTrace异常堆栈信息String否测试环境才返回,方便接口调试错误排查
data返回内容Object否
data字段说明类型必填备注
ticket凭证String是
expiresIn凭证时长Int是单位 秒
appKey应用akString是

成功返回示例 ​

json
{
    "success":true,
    "code":"0",
    "message":null,
    "data": {
      "ticket": "",
      "expiresIn": 7200,
      "appKey":""
    },
    "extend":null,
    "debugMessage":"",
    "debugTrace":null,
    "requestId":"c50f0e21405c4e3e993e49dd1196e0a1"
}

失败返回示例 ​

json
{
    "requestId": "15902051813530044359",
    "success": false,
    "code": "ERR_RETRY",
    "message": "请稍后重试",
  	"debugMessage": "",
		"debugTrace": "",
		"extend": {}
}