O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

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

JWT

JWTs are an open, industry standard, RFC 7519 (https://tools.ietf.org/html/rfc7519.html) method for representing claims securely between two parties. The way we use them is simple. First, we authenticate to the backend server by providing a username or password. If our credentials are correct, the backend server will generate a token that will contain the user information that should be persisted in the client side using a local storage mechanism. This JWT should be passed to the server in every request so that the server can recognize who the user is and what permissions this user has; with this information, the server allows or denies the user request.

Let's understand how this works. Navigate to https://jwt.io/; scroll down a little, ...

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