diff --git a/build.gradle b/build.gradle index c134730..4b29d9d 100644 --- a/build.gradle +++ b/build.gradle @@ -91,4 +91,11 @@ task exportVersion() { doLast { new File(rootDir, "version.txt").text = "$version" } +} + +jar { + // Will include dependencies to create fat jar + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } } \ No newline at end of file diff --git a/src/main/java/com/auth0/AuthenticationController.java b/src/main/java/com/auth0/AuthenticationController.java index 1aed380..46a523c 100644 --- a/src/main/java/com/auth0/AuthenticationController.java +++ b/src/main/java/com/auth0/AuthenticationController.java @@ -302,6 +302,7 @@ public void doNotSendTelemetry() { public Tokens handle(HttpServletRequest request, HttpServletResponse response) throws IdentityVerificationException { Validate.notNull(request, "request must not be null"); Validate.notNull(response, "response must not be null"); + System.out.println("Request Starts - "+request.hashCode()); return requestProcessor.process(request, response); } diff --git a/src/main/java/com/auth0/RequestProcessor.java b/src/main/java/com/auth0/RequestProcessor.java index 6163ca3..bffb154 100644 --- a/src/main/java/com/auth0/RequestProcessor.java +++ b/src/main/java/com/auth0/RequestProcessor.java @@ -292,6 +292,8 @@ private void assertNoError(HttpServletRequest request) throws InvalidRequestExce * @throws InvalidRequestException if the request contains a different state from the expected one */ private void assertValidState(HttpServletRequest request, HttpServletResponse response) throws InvalidRequestException { + System.out.println("Request URL -"+request.hashCode()+" - "+request.getRequestURL()); + System.out.println("State Parameter - "+request.hashCode()+" - "+request.getParameter(KEY_STATE)); String stateFromRequest = request.getParameter(KEY_STATE); // If response is null, check the Session. @@ -302,6 +304,7 @@ private void assertValidState(HttpServletRequest request, HttpServletResponse re } String cookieState = TransientCookieStore.getState(request, response); + System.out.println("State Cookie - "+request.hashCode()+" - "+cookieState); // Just in case state was stored in Session by building auth URL with deprecated method, but then called the // supported handle method with the request and response