Logging in to the application

The first user story of this chapter is about securing the application using a login screen and token-based authentication using JWT. We will implement the following flow:

  1. The user accesses the customer banking portal via the browser.
  2. The portal application looks for the authentication token to check whether the user is already authenticated or not.
  3. The portal application displays the login screen to prompt the user for their username and password.
  4. The user enters his/her username and password.
  5. The portal application submits the username and password to the server.
  6. The server validates the username and password and returns a token.
  7. The portal application stores the token returned by the server.
  8. The portal application makes ...

Get KnockoutJS by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.