Summary
In this chapter, we secured the customer banking portal based on username and password authentication scheme and token-based authentication. The first section of the chapter covered the commonly used authentication mechanisms, basics of token-based authentication, and saw how it differs from the traditional session cookie-based approach.
In the second section, we developed the login screen and applied the token-based authentication using JWT. This second covered the user input validation.
In the third section, we implemented error handling for a failed login attempt. The fourth section was about retrieving the logged in user from the authentication token and displaying the username on the screen. In the last section, we implemented the logout ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access