File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed
main/java/com/auth0/json/mgmt/selfserviceprofiles
test/java/com/auth0/client/mgmt Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .auth0 .json .mgmt .selfserviceprofiles ;
2+
3+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
4+ import com .fasterxml .jackson .annotation .JsonInclude ;
5+ import com .fasterxml .jackson .annotation .JsonProperty ;
6+
7+ @ JsonInclude (JsonInclude .Include .NON_NULL )
8+ @ JsonIgnoreProperties (ignoreUnknown = true )
9+ public class GoogleWorkspaceProvisioningConfig {
10+ @ JsonProperty ("sync_users" )
11+ private boolean syncUsers ;
12+
13+ @ JsonProperty ("sync_users" )
14+ public boolean isSyncUsers () {
15+ return syncUsers ;
16+ }
17+
18+ @ JsonProperty ("sync_users" )
19+ public void setSyncUsers (boolean syncUsers ) {
20+ this .syncUsers = syncUsers ;
21+ }
22+ }
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ public class ProvisioningConfig {
1313 private List <String > scopes ;
1414 @ JsonProperty ("token_lifetime" )
1515 private int tokenLifetime ;
16+ @ JsonProperty ("google_workspace" )
17+ private GoogleWorkspaceProvisioningConfig googleWorkspace ;
1618
1719
1820 /**
@@ -33,6 +35,15 @@ public void setScopes(List<String> scopes) {
3335 this .scopes = scopes ;
3436 }
3537
38+ /**
39+ * Getter for the Google Workspace provisioning config.
40+ * @return the Google Workspace provisioning config.
41+ */
42+ @ JsonProperty ("google_workspace" )
43+ public GoogleWorkspaceProvisioningConfig getGoogleWorkspace () {
44+ return googleWorkspace ;
45+ }
46+
3647 /**
3748 * Getter for the token lifetime.
3849 * @return the token lifetime.
@@ -50,4 +61,13 @@ public int getTokenLifetime() {
5061 public void setTokenLifetime (int tokenLifetime ) {
5162 this .tokenLifetime = tokenLifetime ;
5263 }
64+
65+ /**
66+ * Setter for the Google Workspace provisioning config.
67+ * @param googleWorkspace the Google Workspace provisioning config to set.
68+ */
69+ @ JsonProperty ("google_workspace" )
70+ public void setGoogleWorkspace (GoogleWorkspaceProvisioningConfig googleWorkspace ) {
71+ this .googleWorkspace = googleWorkspace ;
72+ }
5373}
Original file line number Diff line number Diff line change @@ -278,6 +278,11 @@ public void shouldThrowOnCreateSsoAccessTicketWhenPayloadIsNull() {
278278 public void shouldCreateSsoAccessTicket () throws Exception {
279279 SsoAccessTicketRequest requestBody = new SsoAccessTicketRequest ();
280280 requestBody .setConnectionId ("test-connection" );
281+ ProvisioningConfig provisioningConfig = new ProvisioningConfig ();
282+ GoogleWorkspaceProvisioningConfig googleWorkspace = new GoogleWorkspaceProvisioningConfig ();
283+ googleWorkspace .setSyncUsers (true );
284+ provisioningConfig .setGoogleWorkspace (googleWorkspace );
285+ requestBody .setProvisioningConfig (provisioningConfig );
281286
282287 Request <SsoAccessTicketResponse > request = api .selfServiceProfiles ().createSsoAccessTicket ("id" , requestBody );
283288 assertThat (request , is (notNullValue ()));
You can’t perform that action at this time.
0 commit comments