JSON Web Token (JWT)
MAYANK PATEL APPLICATION ARCHITECT - OILDEX, A SERVICE OF TRANSZAP /Linkedin @maxy_ermayank
What is JWT? JSON Web Tokens (JWT) are an open, industry standard RFC 7519 method for representing claims securely between two parties.
A string representing a set of claims as a JSON object that is encoded in a JWS or JWE, enabling the claims to be digitally signed or MACed and/or encrypted.
When should you use JSON Web Tokens?
Authentication This is the most common scenario for using JWT. Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token.
Authentication (Cont.) Single Sign On is a feature that widely uses JWT nowadays, because of its small overhead and its ability to be easily used across different domains.
Information Exchange JSON Web Tokens are a good way of securely transmitting information between parties, because as they can be signed, for example using public/private key pairs, you can be sure that the senders are who they say they are.
Information Exchange (Cont.) Additionally, as the signature is calculated using the header and the payload, you can also verify that the content hasn't been tampered with.
WHAT IS THE JSON WEB TOKEN STRUCTURE? JSON Web Tokens consist of three parts separated by dots (.), which are: Header Payload Signature
Example xxxxx.yyyyy.zzzzz
JWT Process
PROS AND CONS Standard Scalable Stateless Distributable Web, Desktop and Mobile ready A means to provide granular access control Secure against certain kinds of attacks, like CSRF, and many others. 64Bit encoding
JWT.IO JWT.IO allows you to decode, verify and generate JWT.
Using JSON Web Tokens as API Keys
Glossary
JSON Web Signature (JWS)
Digital Signature
Message Authentication Code (MAC)
JWS Compact Serialization
JWS Payload
JSON Web Encryption (JWE)
Thank You!!!

Json web token