@@ -27,6 +27,7 @@ public class ClientTest extends JsonTest<Client> {
2727 " \" logo_uri\" : \" uri\" ,\n " +
2828 " \" oidc_conformant\" : true,\n " +
2929 " \" is_first_party\" : true,\n " +
30+ " \" is_token_endpoint_ip_header_trusted\" : true,\n " +
3031 " \" initiate_login_uri\" : \" https://myhome.com/login\" ,\n " +
3132 " \" callbacks\" : [\n " +
3233 " \" value\" \n " +
@@ -163,6 +164,7 @@ public void shouldSerialize() throws Exception {
163164 client .setLogoUri ("uri" );
164165 client .setOIDCConformant (true );
165166 client .setIsFirstParty (true );
167+ client .setIsTokenEndpointIpHeaderTrusted (true );
166168 List <String > stringList = Collections .singletonList ("value" );
167169 client .setCallbacks (stringList );
168170 client .setAllowedOrigins (stringList );
@@ -251,6 +253,7 @@ public void shouldSerialize() throws Exception {
251253 assertThat (serialized , JsonMatcher .hasEntry ("oidc_conformant" , true ));
252254 assertThat (serialized , JsonMatcher .hasEntry ("initiate_login_uri" , "https://appzero.com/login" ));
253255 assertThat (serialized , JsonMatcher .hasEntry ("is_first_party" , true ));
256+ assertThat (serialized , JsonMatcher .hasEntry ("is_token_endpoint_ip_header_trusted" , true ));
254257 assertThat (serialized , JsonMatcher .hasEntry ("callbacks" , Collections .singletonList ("value" )));
255258 assertThat (serialized , JsonMatcher .hasEntry ("grant_types" , Collections .singletonList ("value" )));
256259 assertThat (serialized , JsonMatcher .hasEntry ("allowed_origins" , Collections .singletonList ("value" )));
@@ -298,6 +301,7 @@ public void shouldDeserialize() throws Exception {
298301
299302 assertThat (client .isOIDCConformant (), is (true ));
300303 assertThat (client .isFirstParty (), is (true ));
304+ assertThat (client .getIsTokenEndpointIpHeaderTrusted (), is (true ));
301305
302306 assertThat (client .getCallbacks (), contains ("value" ));
303307 assertThat (client .getWebOrigins (), contains ("value" ));
0 commit comments