I am new to the web application development and recently ventured on a journey to build one (was not aware of the servlets prior to this so I am really new). I am stuck on creating the log-in page using OpenID.
If I want every single page to require the user to be logged in to even view, how would I achieve this using servlets? Would I be putting in user login status at the beginning of doGet() of all servlets and if the user is not logged in, redirect to the log-in page and redirect back to the servlet? This seems like some boiler-plate code, is there some kind of configuration I can do to achieve the same thing easily?
Also, I do appreciate Google's openID documentation, it is not detailed enough for me to understand how the work flow is in this framework. Is there a helpful tutorial site anyone knows? Had not much luck in google searches either...
Thanks guys!