Skip to content

Commit ebeb601

Browse files
committed
feat:生成最新版的 authing server java sdk
1 parent 7e4a0ef commit ebeb601

File tree

181 files changed

+16003
-5517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+16003
-5517
lines changed

src/main/java/cn/authing/sdk/java/client/AuthenticationClient.java

Lines changed: 2009 additions & 1596 deletions
Large diffs are not rendered by default.

src/main/java/cn/authing/sdk/java/client/ManagementClient.java

Lines changed: 4745 additions & 3639 deletions
Large diffs are not rendered by default.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
package cn.authing.sdk.java.dto;
2+
3+
import java.util.List;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
7+
public class AddTenantDepartmentMembersReqDto {
8+
/**
9+
* 组织 code
10+
*/
11+
@JsonProperty("organizationCode")
12+
private String organizationCode;
13+
/**
14+
* 部门系统 ID(为 Authing 系统自动生成,不可修改)
15+
*/
16+
@JsonProperty("departmentId")
17+
private String departmentId;
18+
/**
19+
* 此次调用中使用的部门 ID 的类型
20+
*/
21+
@JsonProperty("departmentIdType")
22+
private DepartmentIdType departmentIdType;
23+
/**
24+
* 关联的用户池级别的用户 ID
25+
*/
26+
@JsonProperty("linkUserIds")
27+
private List<String> linkUserIds;
28+
/**
29+
* 租户成员 ID
30+
*/
31+
@JsonProperty("memberIds")
32+
private List<String> memberIds;
33+
/**
34+
* 租户 ID
35+
*/
36+
@JsonProperty("tenantId")
37+
private String tenantId;
38+
39+
public String getOrganizationCode() {
40+
return organizationCode;
41+
}
42+
public void setOrganizationCode(String organizationCode) {
43+
this.organizationCode = organizationCode;
44+
}
45+
46+
public String getDepartmentId() {
47+
return departmentId;
48+
}
49+
public void setDepartmentId(String departmentId) {
50+
this.departmentId = departmentId;
51+
}
52+
53+
public DepartmentIdType getDepartmentIdType() {
54+
return departmentIdType;
55+
}
56+
public void setDepartmentIdType(DepartmentIdType departmentIdType) {
57+
this.departmentIdType = departmentIdType;
58+
}
59+
60+
public List<String> getLinkUserIds() {
61+
return linkUserIds;
62+
}
63+
public void setLinkUserIds(List<String> linkUserIds) {
64+
this.linkUserIds = linkUserIds;
65+
}
66+
67+
public List<String> getMemberIds() {
68+
return memberIds;
69+
}
70+
public void setMemberIds(List<String> memberIds) {
71+
this.memberIds = memberIds;
72+
}
73+
74+
public String getTenantId() {
75+
return tenantId;
76+
}
77+
public void setTenantId(String tenantId) {
78+
this.tenantId = tenantId;
79+
}
80+
81+
82+
/**
83+
* 此次调用中使用的部门 ID 的类型
84+
*/
85+
public static enum DepartmentIdType {
86+
87+
@JsonProperty("department_id")
88+
DEPARTMENT_ID("department_id"),
89+
90+
@JsonProperty("open_department_id")
91+
OPEN_DEPARTMENT_ID("open_department_id"),
92+
;
93+
94+
private String value;
95+
96+
DepartmentIdType(String value) {
97+
this.value = value;
98+
}
99+
100+
public String getValue() {
101+
return value;
102+
}
103+
}
104+
105+
106+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package cn.authing.sdk.java.dto;
2+
3+
import java.util.List;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
7+
public class AddTenantUsersDto {
8+
/**
9+
* 关联的用户池级别的用户 ID
10+
*/
11+
@JsonProperty("linkUserIds")
12+
private List<String> linkUserIds;
13+
/**
14+
* 租户 ID
15+
*/
16+
@JsonProperty("tenantId")
17+
private String tenantId;
18+
19+
public List<String> getLinkUserIds() {
20+
return linkUserIds;
21+
}
22+
public void setLinkUserIds(List<String> linkUserIds) {
23+
this.linkUserIds = linkUserIds;
24+
}
25+
26+
public String getTenantId() {
27+
return tenantId;
28+
}
29+
public void setTenantId(String tenantId) {
30+
this.tenantId = tenantId;
31+
}
32+
33+
34+
35+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
package cn.authing.sdk.java.dto;
2+
3+
import java.util.List;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
7+
public class AppQRCodeLoginDto {
8+
/**
9+
* APP 扫二维码登录:
10+
* - `APP_LOGIN`: APP 扫码登录;
11+
*
12+
*/
13+
@JsonProperty("action")
14+
private Action action;
15+
/**
16+
* 二维码唯一 ID
17+
*/
18+
@JsonProperty("qrcodeId")
19+
private String qrcodeId;
20+
21+
public Action getAction() {
22+
return action;
23+
}
24+
public void setAction(Action action) {
25+
this.action = action;
26+
}
27+
28+
public String getQrcodeId() {
29+
return qrcodeId;
30+
}
31+
public void setQrcodeId(String qrcodeId) {
32+
this.qrcodeId = qrcodeId;
33+
}
34+
35+
36+
/**
37+
* APP 扫二维码登录:
38+
* - `APP_LOGIN`: APP 扫码登录;
39+
*
40+
*/
41+
public static enum Action {
42+
43+
@JsonProperty("APP_LOGIN")
44+
APP_LOGIN("APP_LOGIN"),
45+
;
46+
47+
private String value;
48+
49+
Action(String value) {
50+
this.value = value;
51+
}
52+
53+
public String getValue() {
54+
return value;
55+
}
56+
}
57+
58+
59+
}

src/main/java/cn/authing/sdk/java/dto/ApplicationDto.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ public static enum AppType {
354354

355355
@JsonProperty("api")
356356
API("api"),
357+
358+
@JsonProperty("mini-program")
359+
MINI_PROGRAM("mini-program"),
357360
;
358361

359362
private String value;

src/main/java/cn/authing/sdk/java/dto/ApplicationEnabledExtIdpConnDto.java

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,18 @@ public static enum ExtIdpType {
203203

204204
@JsonProperty("welink")
205205
WELINK("welink"),
206+
207+
@JsonProperty("huawei")
208+
HUAWEI("huawei"),
209+
210+
@JsonProperty("honor")
211+
HONOR("honor"),
212+
213+
@JsonProperty("xiaomi")
214+
XIAOMI("xiaomi"),
215+
216+
@JsonProperty("aws")
217+
AWS("aws"),
206218
;
207219

208220
private String value;
@@ -248,6 +260,9 @@ public static enum ExtIdpConnType {
248260
@JsonProperty("facebook")
249261
FACEBOOK("facebook"),
250262

263+
@JsonProperty("facebook:mobile")
264+
FACEBOOK_MOBILE("facebook:mobile"),
265+
251266
@JsonProperty("twitter")
252267
TWITTER("twitter"),
253268

@@ -284,6 +299,9 @@ public static enum ExtIdpConnType {
284299
@JsonProperty("qq")
285300
QQ("qq"),
286301

302+
@JsonProperty("qq:mobile")
303+
QQ_MOBILE("qq:mobile"),
304+
287305
@JsonProperty("wechatwork:corp:qrconnect")
288306
WECHATWORK_CORP_QRCONNECT("wechatwork:corp:qrconnect"),
289307

@@ -302,12 +320,18 @@ public static enum ExtIdpConnType {
302320
@JsonProperty("dingtalk")
303321
DINGTALK("dingtalk"),
304322

323+
@JsonProperty("dingtalk:mobile")
324+
DINGTALK_MOBILE("dingtalk:mobile"),
325+
305326
@JsonProperty("dingtalk:provider")
306327
DINGTALK_PROVIDER("dingtalk:provider"),
307328

308329
@JsonProperty("weibo")
309330
WEIBO("weibo"),
310331

332+
@JsonProperty("weibo:mobile")
333+
WEIBO_MOBILE("weibo:mobile"),
334+
311335
@JsonProperty("apple")
312336
APPLE("apple"),
313337

@@ -317,6 +341,9 @@ public static enum ExtIdpConnType {
317341
@JsonProperty("baidu")
318342
BAIDU("baidu"),
319343

344+
@JsonProperty("baidu:mobile")
345+
BAIDU_MOBILE("baidu:mobile"),
346+
320347
@JsonProperty("lark-internal")
321348
LARK_INTERNAL("lark-internal"),
322349

@@ -329,6 +356,9 @@ public static enum ExtIdpConnType {
329356
@JsonProperty("linkedin")
330357
LINKEDIN("linkedin"),
331358

359+
@JsonProperty("linkedin:mobile")
360+
LINKEDIN_MOBILE("linkedin:mobile"),
361+
332362
@JsonProperty("slack")
333363
SLACK("slack"),
334364

@@ -349,6 +379,18 @@ public static enum ExtIdpConnType {
349379

350380
@JsonProperty("ad-kerberos")
351381
AD_KERBEROS("ad-kerberos"),
382+
383+
@JsonProperty("huawei")
384+
HUAWEI("huawei"),
385+
386+
@JsonProperty("honor")
387+
HONOR("honor"),
388+
389+
@JsonProperty("xiaomi")
390+
XIAOMI("xiaomi"),
391+
392+
@JsonProperty("aws")
393+
AWS("aws"),
352394
;
353395

354396
private String value;

src/main/java/cn/authing/sdk/java/dto/ApplicationSimpleInfoDto.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ public static enum AppType {
107107

108108
@JsonProperty("api")
109109
API("api"),
110+
111+
@JsonProperty("mini-program")
112+
MINI_PROGRAM("mini-program"),
110113
;
111114

112115
private String value;
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
package cn.authing.sdk.java.dto;
2+
3+
import java.util.List;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
import cn.authing.sdk.java.dto.AuthenticatorAssertionResponseDto;
7+
8+
public class AuthenticationCredentialDto {
9+
/**
10+
* Base64URL 编码的凭证 ID
11+
*/
12+
@JsonProperty("id")
13+
private String id;
14+
/**
15+
* 原始凭证 ID
16+
*/
17+
@JsonProperty("rawId")
18+
private String rawId;
19+
/**
20+
* 固定值,'public-key'
21+
*/
22+
@JsonProperty("response")
23+
private AuthenticatorAssertionResponseDto response;
24+
/**
25+
* 固定值,'public-key'
26+
*/
27+
@JsonProperty("type")
28+
private String type;
29+
30+
public String getId() {
31+
return id;
32+
}
33+
public void setId(String id) {
34+
this.id = id;
35+
}
36+
37+
public String getRawId() {
38+
return rawId;
39+
}
40+
public void setRawId(String rawId) {
41+
this.rawId = rawId;
42+
}
43+
44+
public AuthenticatorAssertionResponseDto getResponse() {
45+
return response;
46+
}
47+
public void setResponse(AuthenticatorAssertionResponseDto response) {
48+
this.response = response;
49+
}
50+
51+
public String getType() {
52+
return type;
53+
}
54+
public void setType(String type) {
55+
this.type = type;
56+
}
57+
58+
59+
60+
}

0 commit comments

Comments
 (0)