Understand JSON Web Token(JWT) Structure
VideoThis tutorial is explained in the below Youtube Video.
Spring Boot JSON Web Token- Table of ContentsUnderstanding the need for JSON Web Token(JWT) Understanding JWT Structure Implement Spring Boot Security Implement Spring Boot + JSON Web Token Security Implement Spring Boot Security + JSON Web Token + MySQL Spring Boot RestTemplate + JWT Authentication Example Spring Boot Security - Refresh Expired JSON Web Token Angular 7 + Spring Boot JWT Authentication Hello World Example Online JWT Generator Online JWT Decoder
Structure of JWTA JWT consists of 3 parts -
The 3 parts of JWT are seperated by a dot.Also all the information in the 3 parts is in base64 encoded format.
Let us have a look at each of the three parts of JWT and its functionality.
An important point to remember about JWT is that the information in the payload of the JWT is visible to everyone. There can be a "Man in the Middle" attack and the contents of the JWT can be changed. So we should not pass any sensitive information like passwords in the payload. We can encrypt the payload data if we want to make it more secure. However we can be sure that no one can tamper and change the payload information. If this is done the server will recognize it.