O'Reilly logo

KnockoutJS by Example by Adnan Jaswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required