From the course: Postman Essential Training
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
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
-
-
-
(Locked)
Creating collections and folders2m 4s
-
(Locked)
The contact list application2m 12s
-
(Locked)
How JSON Web Tokens (JWTs) work3m 34s
-
(Locked)
Creating GET requests5m 24s
-
(Locked)
Creating POST requests4m 4s
-
(Locked)
Creating PUT and DELETE requests4m 31s
-
(Locked)
Creating negative requests: Part 14m 25s
-
(Locked)
Creating negative requests: Part 26m 16s
-
(Locked)
Using environment variables3m 54s
-
(Locked)
Saving response data as a variable6m 37s
-
(Locked)
Challenge: Add variables to a request1m 6s
-
(Locked)
Solution: Add variables to a request2m 17s
-
(Locked)
-
-
-
-