1414
1515public class ClientTest extends JsonTest <Client > {
1616
17- private static final String json = "{\" name\" :\" name\" ,\" description\" :\" description\" ,\" client_secret\" :\" secret\" ,\" app_type\" :\" type\" ,\" logo_uri\" :\" uri\" ,\" oidc_conformant\" :true,\" callbacks\" :[\" value\" ],\" allowed_origins\" :[\" value\" ],\" client_aliases\" :[\" value\" ],\" allowed_clients\" :[\" value\" ],\" allowed_logout_urls\" :[\" value\" ],\" jwt_configuration\" :{\" lifetime_in_seconds\" :100,\" scopes\" :\" openid\" ,\" alg\" :\" alg\" },\" encryption_key\" :{\" pub\" :\" pub\" ,\" cert\" :\" cert\" },\" sso\" :true,\" sso_disabled\" :true,\" custom_login_page_on\" :true,\" custom_login_page\" :\" custom\" ,\" custom_login_page_preview\" :\" preview\" ,\" form_template\" :\" template\" ,\" addons\" :{\" rms\" :{},\" mscrm\" :{},\" slack\" :{},\" layer\" :{}},\" token_endpoint_auth_method\" :\" method\" ,\" client_metadata\" :{\" key\" :\" value\" },\" mobile\" :{\" android\" :{\" app_package_name\" :\" pkg\" ,\" sha256_cert_fingerprints\" :[\" 256\" ]},\" ios\" :{\" team_id\" :\" team\" ,\" app_bundle_identifier\" :\" id\" }}}" ;
1817 private static final String readOnlyJson = "{\" client_id\" :\" clientId\" ,\" is_first_party\" :true,\" is_heroku_app\" :true,\" signing_keys\" :[{\" cert\" :\" ce\" ,\" pkcs7\" :\" pk\" ,\" subject\" :\" su\" }]}" ;
18+ private static final String json = "{\" name\" :\" name\" ,\" description\" :\" description\" ,\" client_secret\" :\" secret\" ,\" app_type\" :\" type\" ,\" logo_uri\" :\" uri\" ,\" oidc_conformant\" :true,\" callbacks\" :[\" value\" ],\" allowed_origins\" :[\" value\" ],\" web_origins\" :[\" value\" ],\" client_aliases\" :[\" value\" ],\" allowed_clients\" :[\" value\" ],\" allowed_logout_urls\" :[\" value\" ],\" jwt_configuration\" :{\" lifetime_in_seconds\" :100,\" scopes\" :\" openid\" ,\" alg\" :\" alg\" },\" encryption_key\" :{\" pub\" :\" pub\" ,\" cert\" :\" cert\" },\" sso\" :true,\" sso_disabled\" :true,\" custom_login_page_on\" :true,\" custom_login_page\" :\" custom\" ,\" custom_login_page_preview\" :\" preview\" ,\" form_template\" :\" template\" ,\" addons\" :{\" rms\" :{},\" mscrm\" :{},\" slack\" :{},\" layer\" :{}},\" token_endpoint_auth_method\" :\" method\" ,\" client_metadata\" :{\" key\" :\" value\" },\" mobile\" :{\" android\" :{\" app_package_name\" :\" pkg\" ,\" sha256_cert_fingerprints\" :[\" 256\" ]},\" ios\" :{\" team_id\" :\" team\" ,\" app_bundle_identifier\" :\" id\" }}}" ;
1919
2020 @ Test
2121 public void shouldSerialize () throws Exception {
@@ -30,6 +30,7 @@ public void shouldSerialize() throws Exception {
3030 List <String > stringList = Collections .singletonList ("value" );
3131 client .setCallbacks (stringList );
3232 client .setAllowedOrigins (stringList );
33+ client .setWebOrigins (stringList );
3334 client .setClientAliases (stringList );
3435 client .setAllowedClients (stringList );
3536 client .setAllowedLogoutUrls (stringList );
@@ -93,6 +94,7 @@ public void shouldDeserialize() throws Exception {
9394 assertThat (client .isOIDCConformant (), is (true ));
9495
9596 assertThat (client .getCallbacks (), contains ("value" ));
97+ assertThat (client .getWebOrigins (), contains ("value" ));
9698 assertThat (client .getAllowedOrigins (), contains ("value" ));
9799 assertThat (client .getClientAliases (), contains ("value" ));
98100 assertThat (client .getAllowedClients (), contains ("value" ));
0 commit comments