Skip to content

Commit e2456b3

Browse files
authored
Add missing fields in Client model (#444)
1 parent 36be616 commit e2456b3

2 files changed

Lines changed: 86 additions & 1 deletion

File tree

src/main/java/com/auth0/json/mgmt/client/Client.java

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,50 @@ public class Client {
8282
private String organizationUsage;
8383
@JsonProperty("organization_require_behavior")
8484
private String organizationRequireBehavior;
85+
@JsonProperty("tenant")
86+
private String tenant;
87+
@JsonProperty("global")
88+
private Boolean global;
89+
@JsonProperty("cross_origin_auth")
90+
private Boolean crossOriginAuth;
91+
@JsonProperty("cross_origin_loc")
92+
private String crossOriginLoc;
93+
94+
/**
95+
* Getter for the name of the tenant this client belongs to.
96+
* @return the tenant name
97+
*/
98+
@JsonProperty("tenant")
99+
public String getTenant() {
100+
return tenant;
101+
}
102+
103+
/**
104+
* Setter for the name of the tenant this client belongs to.
105+
* @param tenant the name of the tenant
106+
*/
107+
@JsonProperty("tenant")
108+
public void setTenant(String tenant) {
109+
this.tenant = tenant;
110+
}
111+
112+
/**
113+
* Setter whether this is a global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).
114+
* @param global whether legacy tenant or regular client
115+
*/
116+
@JsonProperty("global")
117+
public void setGlobal(Boolean global) {
118+
this.global = global;
119+
}
120+
121+
/**
122+
* Whether this is a global 'All Applications' client representing legacy tenant settings (true) or a regular client (false).
123+
* @return client representing legacy tenant settings (true) or a regular client (false).
124+
*/
125+
@JsonProperty("global")
126+
public Boolean getGlobal() {
127+
return global;
128+
}
85129

86130
/**
87131
* Creates a new Application instance setting the name property.
@@ -712,5 +756,42 @@ public String getOrganizationRequireBehavior() {
712756
public void setOrganizationRequireBehavior(String organizationRequireBehavior) {
713757
this.organizationRequireBehavior = organizationRequireBehavior;
714758
}
759+
760+
761+
/**
762+
* Setter whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false).
763+
* @param crossOriginAuth whether an application can make cross-origin authentication requests or not
764+
*/
765+
@JsonProperty("cross_origin_auth")
766+
public void setCrossOriginAuth(Boolean crossOriginAuth) {
767+
this.crossOriginAuth = crossOriginAuth;
768+
}
769+
770+
/**
771+
* Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false).
772+
* @return true if application can make cross-origin authentication requests, false otherwise
773+
*/
774+
@JsonProperty("cross_origin_auth")
775+
public Boolean getCrossOriginAuth() {
776+
return crossOriginAuth;
777+
}
778+
779+
/**
780+
* URL of the location in your site where the cross-origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page.
781+
* @param crossOriginLoc url location for cross-origin verification
782+
*/
783+
@JsonProperty("cross_origin_loc")
784+
public void setCrossOriginLoc(String crossOriginLoc) {
785+
this.crossOriginLoc = crossOriginLoc;
786+
}
787+
788+
/**
789+
* Getter for the URL of the location in your site where the cross-origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page.
790+
* @return URL of the location in your site where the cross-origin verification takes place
791+
*/
792+
@JsonProperty("cross_origin_loc")
793+
public String getCrossOriginLoc() {
794+
return crossOriginLoc;
795+
}
715796
}
716797

src/test/resources/mgmt/clients_list.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
"custom_login_page_preview": "",
4040
"form_template": "",
4141
"is_heroku_app": false,
42+
"tenant": "auth0",
43+
"global": false,
44+
"cross_origin_auth": false,
45+
"cross_origin_loc": "https://auth0.com/auth/callback-cross-auth",
4246
"addons": {
4347
"rms": {},
4448
"slack": {
@@ -139,4 +143,4 @@
139143
}
140144
}
141145
}
142-
]
146+
]

0 commit comments

Comments
 (0)