Skip to content

Commit 9bb0451

Browse files
committed
Updated fields in connection object
1 parent e257832 commit 9bb0451

File tree

11 files changed

+91
-341
lines changed

11 files changed

+91
-341
lines changed

src/main/java/com/auth0/client/mgmt/SelfServiceProfilesEntity.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package com.auth0.client.mgmt;
22

33
import com.auth0.client.mgmt.filter.PageBasedPaginationFilter;
4-
import com.auth0.json.mgmt.selfserviceprofiles.SelfServiceProfile;
5-
import com.auth0.json.mgmt.selfserviceprofiles.SelfServiceProfileResponse;
6-
import com.auth0.json.mgmt.selfserviceprofiles.SelfServiceProfileResponsePage;
7-
import com.auth0.json.mgmt.selfserviceprofiles.SsoAccessTicketResponse;
4+
import com.auth0.json.mgmt.selfserviceprofiles.*;
85
import com.auth0.net.*;
96
import com.auth0.net.client.Auth0HttpClient;
107
import com.auth0.net.client.HttpMethod;
@@ -192,12 +189,12 @@ public Request<Object> setCustomText(String id, String language, String page, Ob
192189
* A token with {@code create:sso_access_tickets} scope is needed
193190
* @see <a href="https://auth0.com/docs/api/management/v2#!/self-service-profiles/post-sso-ticket">https://auth0.com/docs/api/management/v2#!/self-service-profiles/post-sso-ticket</a>
194191
* @param id the self-service profile ID.
195-
* @param payload the payload.
192+
* @param requestBody the payload.
196193
* @return a Request to execute.
197194
*/
198-
public Request<SsoAccessTicketResponse> createSsoAccessTicket(String id, Object payload) {
195+
public Request<SsoAccessTicketResponse> createSsoAccessTicket(String id, SsoAccessTicketRequest requestBody) {
199196
Asserts.assertNotNull(id, "id");
200-
Asserts.assertNotNull(payload, "payload");
197+
Asserts.assertNotNull(requestBody, "request body");
201198

202199
HttpUrl.Builder builder = baseUrl.newBuilder()
203200
.addPathSegments(ORGS_PATH)
@@ -208,7 +205,7 @@ public Request<SsoAccessTicketResponse> createSsoAccessTicket(String id, Object
208205

209206
BaseRequest<SsoAccessTicketResponse> request = new BaseRequest<>(this.client, tokenProvider, url, HttpMethod.POST, new TypeReference<SsoAccessTicketResponse>() {
210207
});
211-
request.setBody(payload);
208+
request.setBody(requestBody);
212209
return request;
213210
}
214211

src/main/java/com/auth0/json/mgmt/connections/Connection.java

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public class Connection {
3434
private Map<String, String> metadata;
3535
@JsonProperty("realms")
3636
private List<String> realms;
37+
@JsonProperty("show_as_button")
38+
private boolean showAsButton;
39+
@JsonProperty("is_domain_connection")
40+
private boolean isDomainConnection;
3741

3842
public Connection() {
3943
}
@@ -183,4 +187,38 @@ public List<String> getRealms() {
183187
public void setRealms(List<String> realms) {
184188
this.realms = realms;
185189
}
190+
191+
/**
192+
* Getter for the show as button flag.
193+
*
194+
* @return the show as button flag.
195+
*/
196+
public boolean isShowAsButton() {
197+
return showAsButton;
198+
}
199+
200+
/**
201+
* Setter for the show as button flag.
202+
*
203+
* @param showAsButton the show as button flag to set.
204+
*/
205+
public void setShowAsButton(boolean showAsButton) {
206+
this.showAsButton = showAsButton;
207+
}
208+
209+
/**
210+
* Getter for the domain connection flag.
211+
* @return the domain connection flag.
212+
*/
213+
public boolean isDomainConnection() {
214+
return isDomainConnection;
215+
}
216+
217+
/**
218+
* Setter for the domain connection flag.
219+
* @param domainConnection the domain connection flag to set.
220+
*/
221+
public void setDomainConnection(boolean domainConnection) {
222+
isDomainConnection = domainConnection;
223+
}
186224
}

src/main/java/com/auth0/json/mgmt/selfserviceprofiles/ConnectionConfig.java

Lines changed: 0 additions & 118 deletions
This file was deleted.

src/main/java/com/auth0/json/mgmt/selfserviceprofiles/DomainAliasesConfig.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ public class DomainAliasesConfig {
1111
@JsonProperty("domain_verification")
1212
private String domainVerification;
1313

14-
public DomainAliasesConfig() {}
15-
1614
/**
1715
* Creates a new instance of the DomainAliasesConfig class.
1816
*/

src/main/java/com/auth0/json/mgmt/selfserviceprofiles/Idpinitiated.java

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/main/java/com/auth0/json/mgmt/selfserviceprofiles/Options.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/main/java/com/auth0/json/mgmt/selfserviceprofiles/SsoAccessTicketRequest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
import com.fasterxml.jackson.annotation.JsonProperty;
66

77
import java.util.List;
8+
import java.util.Map;
89

910
@JsonInclude(JsonInclude.Include.NON_NULL)
1011
@JsonIgnoreProperties(ignoreUnknown = true)
1112
public class SsoAccessTicketRequest {
1213
@JsonProperty("connection_id")
1314
private String connectionId;
1415
@JsonProperty("connection_config")
15-
private ConnectionConfig connectionConfig;
16+
private Map<String, Object> connectionConfig;
1617
@JsonProperty("enabled_clients")
1718
private List<String> enabledClients;
1819
@JsonProperty("enabled_organizations")
@@ -42,15 +43,15 @@ public void setConnectionId(String connectionId) {
4243
* Getter for the connection configuration.
4344
* @return the connection configuration.
4445
*/
45-
public ConnectionConfig getConnectionConfig() {
46+
public Map<String, Object> getConnectionConfig() {
4647
return connectionConfig;
4748
}
4849

4950
/**
5051
* Setter for the connection configuration.
5152
* @param connectionConfig the connection configuration to set.
5253
*/
53-
public void setConnectionConfig(ConnectionConfig connectionConfig) {
54+
public void setConnectionConfig(Map<String, Object> connectionConfig) {
5455
this.connectionConfig = connectionConfig;
5556
}
5657

0 commit comments

Comments
 (0)