Skip to content

Commit

Permalink
fix: remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Oct 14, 2024
1 parent 7f20e78 commit f212500
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public void testImplicitGrantFlow() throws Exception {
authRequestBody.add("params", params);

JsonObject authResponse = OAuthAPIHelper.auth(process.getProcess(), authRequestBody);
System.out.println("AuthResponse: " + authResponse);
String cookies = authResponse.get("cookies").getAsJsonArray().get(0).getAsString();
cookies = cookies.split(";")[0];

Expand All @@ -129,7 +128,6 @@ public void testImplicitGrantFlow() throws Exception {
acceptLoginRequestBody.addProperty("rememberFor", 3600);

JsonObject acceptLoginRequestResponse = OAuthAPIHelper.acceptLoginRequest(process.getProcess(), acceptLoginRequestParams, acceptLoginRequestBody);
System.out.println("AcceptLoginRequest: " + acceptLoginRequestResponse);

redirectTo = acceptLoginRequestResponse.get("redirectTo").getAsString();
redirectTo = redirectTo.replace("{apiDomain}", "http://localhost:3001/auth");
Expand All @@ -145,7 +143,6 @@ public void testImplicitGrantFlow() throws Exception {
authRequestBody.addProperty("cookies", cookies);

authResponse = OAuthAPIHelper.auth(process.getProcess(), authRequestBody);
System.out.println(authResponse);

redirectTo = authResponse.get("redirectTo").getAsString();
redirectTo = redirectTo.replace("{apiDomain}", "http://localhost:3001/auth");
Expand All @@ -171,7 +168,6 @@ public void testImplicitGrantFlow() throws Exception {
queryParams.put("consentChallenge", consentChallenge);

JsonObject acceptConsentRequestResponse = OAuthAPIHelper.acceptConsentRequest(process.getProcess(), queryParams, acceptConsentRequestBody);
System.out.println("AcceptConsentRequest: " + acceptConsentRequestResponse);

redirectTo = acceptConsentRequestResponse.get("redirectTo").getAsString();
redirectTo = redirectTo.replace("{apiDomain}", "http://localhost:3001/auth");
Expand All @@ -187,7 +183,6 @@ public void testImplicitGrantFlow() throws Exception {
authRequestBody.addProperty("cookies", cookies);

authResponse = OAuthAPIHelper.auth(process.getProcess(), authRequestBody);
System.out.println(authResponse);

process.kill();
assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STOPPED));
Expand Down

0 comments on commit f212500

Please sign in to comment.