An end-to-end application to learn about spring boot security with JWT.
- One of the best secure way to communicate from client to server.
- To follow Stateless authentication mechanism -> means our input is not stored in server memory/Cookies.
- Create a new authentication API endpoint.
- Examine every incoming request for valid JWT & authorize.
- Accepts user ID and password
- Returns JWT as response
- Extract JWT from the header
- Validate and set in execution context
Note: For Step 2, we have to create our own Filters extending the OncePerRequestFilter.