Skip to content

Commit

Permalink
Cover oxTrust API by tests GluuFederation#786 - readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dmogn authored and madumlao committed Apr 5, 2018
1 parent dd493ac commit 4c1311c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
22 changes: 22 additions & 0 deletions client/README.md
@@ -1,2 +1,24 @@
# oxtrust-api-test
oxTrust API Client library.

oxTrust API integration test application usage example.


Library usage:

String baseURI = "https://localhost/identity/";
String login = "admin";
String password = "password";

OxTrustClient client = new OxTrustClient(baseURI, login, password);
TrustRelationshipClient samlClient = client.getTrustRelationshipClient();

List<SAMLTrustRelationshipShort> trustRelationships = samlClient.list();
samlClient.delete(trustRelationships.get(0).getInum());



Integration test application usage:

1. Edit client/conf/configuration.properties with your oxTrust server parameters.
2. Run java -cp target/oxtrust-client-3.2.0-SNAPSHOT.jar org.gluu.oxtrust.api.test.TestMain
Expand Up @@ -676,7 +676,6 @@ private void saveTR(GluuSAMLTrustRelationship trustRelationship, boolean isUpdat
updatedLogoutRedirectUris.add(logoutRedirectUri);
}
}

}
if(updatedLogoutRedirectUris.isEmpty()){
client.setPostLogoutRedirectUris(null);
Expand Down

0 comments on commit 4c1311c

Please sign in to comment.