Skip to content

Commit 4c98e9b

Browse files
author
Steve Cody
committed
Added Debugging
1 parent c0b0669 commit 4c98e9b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/od/auth/JwtRequestFilter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
5858

5959
// TODO: move the cookie validation into a private method
6060
if (sessionCookie == null || StringUtils.isEmpty(sessionCookie.getValue())) {
61+
String path = request.getServletPath();
62+
logger.debug("Token does not exist... Request Path: " + path);
6163
throw new AuthenticationServiceException("Invalid Token");
6264
}
6365

src/main/java/od/entrypoints/LTIEntryPointController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ public class LTIEntryPointController {
8888

8989
@RequestMapping(value = { "/lti", "/lti/" }, method = RequestMethod.POST)
9090
public RedirectView lti(HttpServletRequest request, HttpServletResponse response) throws ProviderException, ProviderDataConfigurationException {
91-
LaunchRequest launchRequest = new LaunchRequest(request.getParameterMap());
91+
92+
logger.debug("Inside LTI Launch");
93+
LaunchRequest launchRequest = new LaunchRequest(request.getParameterMap());
9294

9395
logger.debug("{}",launchRequest);
9496

0 commit comments

Comments
 (0)