From the course: ASP.NET Core: Token-Based Authentication

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

JSON Web Token

JSON Web Token

- [Instructor] The JSON Web Token, or the JWT, is the token type that we are going to use throughout this course. And, per definition, the JWT is an open standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. In other words, a JWT, or as we're going to call it from now on, a token, is just an encrypted string which has enough information so the server is able to identify the user. A token, or a JWT, has three parts. It has the header, it has the payloads and the signature. In the header part you have information about the type of the token, which in our case is going to be a JWT, and also the signing algorithm. In the payload part you have the claims, and claims are just properties or definitions for the user. Like, for example, the first name of the user, it can be the username, the ID, and also the role. So, for example, to each rolls the user belongs…

Contents