Java Servlet Application
Explore the Java servlet application structure integrated with Auth0 for authentication. Understand how various servlets work together to handle login, token validation, and logout. Gain a clear picture of secure user session management and protected route handling within a sample login app.
We'll cover the following...
We'll cover the following...
Project structure
In this course, we will be interacting with a sample Login application that has the following structure:
├── src
| ├── main
| ├── java
| | ├── com
| | ├── auth0
| | ├── example
| | ├── Auth0Filter.java
| | ├── AuthenticationControllerProvider.java
| | ├── CallbackServlet.java
| | ├── HomeServlet.java
| | ├── LoginServlet.java
| | ├── LogoutServlet.java
| ├── webapp
| ├── WEB-INF
| ├── jsp
| | ├── home.jsp
| ├── web.xml
├── build.gradle
Let’s try to understand the different components of this Login application.
The project contains a single JSP: the home.jsp. This JSP displays the token associated with the user after a successful login and ...