response.setStatus(HttpServletResponse.SC_NOT_FOUND);
return;
}
try {
GitkitUser gitkitUser = null;
GitkitClient gitkitClient = GitkitClient.createFromJson("gitkit-server-config.json");
gitkitUser = gitkitClient.validateTokenInRequest(request);
String userInfo = null;
if (gitkitUser != null) {
userInfo = "Welcome back!<br><br> Email: " + gitkitUser.getEmail() + "<br> Id: "
+ gitkitUser.getLocalId() + "<br> Provider: " + gitkitUser.getCurrentProvider();
System.out.println(gitkitUser.getPhotoUrl());
}
response.getWriter().print(new Scanner(new File("home.jsp"), "UTF-8")
.useDelimiter("\\A").next()