From the course: Postman Essential Training

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

How JSON Web Tokens (JWTs) work

How JSON Web Tokens (JWTs) work - Postman Tutorial

From the course: Postman Essential Training

How JSON Web Tokens (JWTs) work

- [Instructor] APIs allow us to make requests directly to a server or data store without having to go through a UI. But software creators need to make sure that those APIs are secure. You wouldn't want to have a stranger able to make an API call to access your bank account, for example. The most common way to secure APIs is through a JWT, or JSON web token. This token is generated through a POST request. The username and password are sent to the application and if they're valid, a JWT is generated. This JWT can then be used in all requests to interact with the application. So, let's generate a JWT. Let's open up our contact list collection to see our two folders, and we're going to click on the three-dot menu of the Basic Endpoint Tests folder. Then, we're going to choose add request. We're going to give our new request a name. We're going to call it Login and click return. And now, in the HTTP verb section, we…

Contents