0% found this document useful (0 votes)
8 views1 page

JWT

Uploaded by

Soumita Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

JWT

Uploaded by

Soumita Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

JWT  JSON Web Token is an open standard and self-contained way for securely transmitting

information between different parties

Token is used to exchange during authentication

JWT  Is best way to communicate b/w client and server …follows stateless authentication
mechanism…stateless means the data of client side is not stored

Stateless Authentication Mechanism  client side cookies are stored ..cookie’s details … if cookies
are exchanged … then connection established

Cookie value is the value that we want to exchange between server and client

Cookie don’t have zero argument parameter

Cookie return -1 by default

Cookie is browser specific… if we change the browser the cookie will be also changed

Payload

Post Request  for token generate

This token is used for future calling.

At first we have to generate token  next rest API

JWT Authentication && Basic Authentication

Drawback of Basic Authentication:

1. We do it through usename and password but userid and password are hardcoded… anyone
can access it easily… not secure

What is JSON token ??


Filter validate the token .. check if the token validate or not
Configure JWT in Spring Security

JWT : Impl
JWT : API
JWT : Jackson

Jwt-expiration -> After that JWt not valid

You might also like