What is JWT? JSON Web Tokens Explained (Java Brains)

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 เม.ย. 2024
  • Text version: / jv4doduxs8
    JSON Web tokens or JWT is a very popular way to do user authorization in web apps today. JWT has also become very popular in the context of micro services and some of the other developments in the way we build web applications today. In this tutorial, you’ll learn what JWT is and how exactly it’s used, specifically in the context of securing web applications.
    Java Brains website: javabrains.io
    #JavaBrains #BrainBytes #WhatIs #JWT #Java #Tutorial #Concept

ความคิดเห็น • 800

  • @alexeykurbatov6195
    @alexeykurbatov6195 4 ปีที่แล้ว +797

    Such a beautiful explanation. It is more like a movie rather than a tutorial )

    • @ArtonnX
      @ArtonnX 3 ปีที่แล้ว +12

      Agreed, this video should be shown to teach how to explain things.

    • @CodeSbyAniz
      @CodeSbyAniz 3 ปีที่แล้ว

      true

    • @vishnuvamshi2927
      @vishnuvamshi2927 3 ปีที่แล้ว

      @Raffaele Spieziaagreed

    • @vipconstrictors1798
      @vipconstrictors1798 2 ปีที่แล้ว +2

      The guy is an education genius!

    • @CodeVolcano
      @CodeVolcano 2 ปีที่แล้ว

      th-cam.com/video/hEgdIT7AEfc/w-d-xo.html

  • @ruthwaithera5457
    @ruthwaithera5457 4 ปีที่แล้ว +309

    The analogy of session ID to ticket number makes the whole concept more understandable 👍.

    • @samueltunde4210
      @samueltunde4210 3 ปีที่แล้ว +3

      very hard working and skilled expert who invariably understand what a problem all about and takes the necessary massage to get it done
      □Thanks to Hackernile5 on IG I got disable to account active back aging you'll should give him a try and thanks me later
      □I'm from Florida
      Facebook logged me out leat week after I posted a picture didn't know why
      We'lli solved the problem after seeing a ton for good recommendations in the comment about Hackernile5 on IG
      He helped me to get my account back
      □Thanks to Hackernile5 on IG I woke up this morning to find my lost Facebook account password sent to my email after he hacked 3year ago

    • @CodeVolcano
      @CodeVolcano 2 ปีที่แล้ว

      th-cam.com/video/hEgdIT7AEfc/w-d-xo.html

  • @RanjuRao
    @RanjuRao 2 ปีที่แล้ว +48

    Guys like you should pursue as real time professors in colleges ! Its not the technology that makes it amaze ,its how you deliver the idea :)Appreciate the hard work in putting good stuff for free !

    • @mvs69
      @mvs69 11 หลายเดือนก่อน

      Yes Ranju 100% true

    • @lea3225
      @lea3225 6 หลายเดือนก่อน

      completely agree, it was very well explained.

  • @techproductowner
    @techproductowner 3 ปีที่แล้ว +29

    No one can leave this video without giving thanks for your effort , bare min we can do . .is to appreciate some one hard work

  • @fadygamilmahrousmasoud5863
    @fadygamilmahrousmasoud5863 2 ปีที่แล้ว +16

    i didn't get bored through the whole tutorial, its amazing how you can simplify things with real world examples and mention some technical problems like single point of failure and when it might happen, thank you man you are amazing.

  • @imranonthenet
    @imranonthenet 4 ปีที่แล้ว +42

    I've seen your full video series on Java Spring Boot, you explain everything so well that even complex topics look simple, I really love your style and way of teaching, you make everything sound interesting, you explain the right amount of theory and practical. Please keep it up. I'm surprised why you have only 343K subscribers, you should have much much more.

  • @chetansharma5514
    @chetansharma5514 3 ปีที่แล้ว +13

    Kaushik, you are just mind boggling with explaining things. I must say there are loads of intelligent people in the world but not those many can explain and teach things as simply and as elaborately as they understand them. Kudos to you for being so informative and classy while explaining each and every thing. Have been following your channel since 2013 and still one of the favorite to understand anything new in web world.

  • @debadattasahoo8257
    @debadattasahoo8257 3 ปีที่แล้ว +4

    Every video I watch, I always find each video raise the bar. The kind of explanation/presentation along with different example is absolutely unparalleled.

  • @suvigatherase4598
    @suvigatherase4598 4 ปีที่แล้ว +13

    Your teaching can make anybody learn anything with ease. Great Teacher!!Thanks a lot for the useful video Sir.

  • @ron6107
    @ron6107 3 ปีที่แล้ว +3

    You are just getting more awesome by the day. I am one of those guys who watched your first SOAP videos and it brings me great pleasure to see you making these awesome contributions. Keep up the awesomeness.

  • @cassandraz3035
    @cassandraz3035 3 ปีที่แล้ว +3

    please never stop teaching !! you're a natural, and so easy to understand.

  • @chetankumar7991
    @chetankumar7991 4 ปีที่แล้ว +40

    Dear Sir,
    I have been following you since 2014, you are an amazing teacher and the fact that you do this for free, salute to you!!

    • @DrunkenEngineer
      @DrunkenEngineer 4 ปีที่แล้ว

      Yes Excellent Explanation, it helped me on cracking my interview

    • @CodeVolcano
      @CodeVolcano 2 ปีที่แล้ว

      th-cam.com/video/hEgdIT7AEfc/w-d-xo.html

  • @gambarimas
    @gambarimas 3 ปีที่แล้ว

    Koushik, your videos (notice the 's') are by far the best I have found online on Java web development world. You are my number one reference. You got both, the technical knowledge and the skill to teach them very nicely, always explaining the reasoning behind everything in a way most of the people cannot. Thank you very much.

  • @amoghskulkarni
    @amoghskulkarni 4 ปีที่แล้ว

    Quite frankly one of the best introductory explanations of JWT on TH-cam. Understood everything in the first go.

  • @omurduneto
    @omurduneto ปีที่แล้ว +1

    javabrains is the best teacher on TH-cam hands down. No other Chanel compares. No other college professor comes even close.

  • @rajnesingh123
    @rajnesingh123 4 ปีที่แล้ว

    everytime i see your video , am dazzled with the simplicity of your explanation right from ground up. It's just sticks to the brain. thank you Kaushik.

  • @hansikarajput9157
    @hansikarajput9157 3 ปีที่แล้ว +3

    I have never heard a more beautiful explanation before. The relation to examples make it so easy to understand. Thanks a lot!! This is the first time i m posting a comment for a tutorial:)

  • @thomasmunguya2207
    @thomasmunguya2207 ปีที่แล้ว

    I love how illustrative you are when explaining these things. Its one of the main reasons why I enjoy watching your tutorials. Nice one.

  • @gurunathsugavanam887
    @gurunathsugavanam887 3 ปีที่แล้ว +1

    Who would press dislike on this video? Such a clear and concise explanation on technology is a rare thing on youtube.

  • @michaeledwardharris
    @michaeledwardharris 2 ปีที่แล้ว +8

    Wow, that was very nice! I really enjoy the relaxed nature of your presentations. Your pacing is just excellent. Your videos are not only informative, but even *relaxing* to watch. I'm a lead software engineer with tons of experience, and I learn something every time I watch your videos. I can't thank you enough.

  • @ulviugur3605
    @ulviugur3605 2 ปีที่แล้ว

    A lot of people talk about the technicality of JWTs and get lost in it. The "Why" of it makes it much more understandable. Good job !!

  • @amar6323
    @amar6323 4 ปีที่แล้ว

    Hands down. Great turorial. Simple to understand. Hard to forget what you learn here.

  • @bufordmaddogtannen
    @bufordmaddogtannen 4 ปีที่แล้ว +2

    Thanks, this is exactly the video I was looking for. On a side note load balanced applications can still work with cookies only, by enabling session persistence on the load balancer.

  • @RameshP-ds4xt
    @RameshP-ds4xt 4 ปีที่แล้ว +14

    wow.. that examples does everything to make it a perfect tut on the subject. thank you

  • @Ajith4u81
    @Ajith4u81 3 ปีที่แล้ว

    I have searched several places to understand the exact difference. This is the best video tutorial i have ever seen till date. Hats off to the media.
    Also all the other informations shared by this channel is worth watching and is unmatched

  • @kidelliott7122
    @kidelliott7122 3 ปีที่แล้ว +1

    The analogy game in this video is ON POINT! Thank you so much for making this video!

  • @francescopasin1928
    @francescopasin1928 3 ปีที่แล้ว

    Theese are the only video where someone greatly and clearly explains jwt and oauth. Thank you for your awesome job.

  • @minefacex
    @minefacex 3 ปีที่แล้ว

    Amazing way of explaining this all. It was excruciating trying to understand it from the RFC specification, but you showed it in a very intuitive way. You have my thanks!

  • @ashkanizadpanah9761
    @ashkanizadpanah9761 3 ปีที่แล้ว +1

    Sir, There is no way the Tech community can thank you for your great videos/training materials. respect

  • @saravanprathi6956
    @saravanprathi6956 3 ปีที่แล้ว

    Thank you for existing Koushik!! :) You are the best!!

  • @firelotusminecraftgaming9678
    @firelotusminecraftgaming9678 4 ปีที่แล้ว

    Today landed up #JavaBrains channel, saw back to back 4 videos. Amazing stuff and explanation. Simply amazing.

  • @priyankashaw1238
    @priyankashaw1238 2 ปีที่แล้ว

    "Dude! we just talked! " is hilarious. You make learning fun.

  • @WimOmbelets
    @WimOmbelets 2 ปีที่แล้ว +2

    This guy has a wonderful way of explaining things. That's a rare gift.

  • @jared0801
    @jared0801 3 ปีที่แล้ว +1

    You're really great at explaining these concepts, thank you!

  • @umothurmon6916
    @umothurmon6916 ปีที่แล้ว

    The phone and customer service department analogies are very clarifying. Good Job

  • @AbhilashThulsidass
    @AbhilashThulsidass 3 ปีที่แล้ว +1

    I paused the video just to comment how amazingly done this is. Damn.

  • @jameslew7269
    @jameslew7269 2 ปีที่แล้ว

    After watching 20-30 videos thinking I have the concept and it's solid in my head, I suddenly stumbled upon this video and I was curious about JWT, your explanations are the best I've seen out of any video I've watched so far, both on Session ID tokens and JWT.

  • @privateaccount2607
    @privateaccount2607 7 หลายเดือนก่อน

    The most awesome explanation I have ever see. I have read a bunch of articles , videos about the same but not even a single resource was comparable to way of teaching of this guys. Hats off to you !!!!!

  • @AswathNarayanan92
    @AswathNarayanan92 4 ปีที่แล้ว

    Dude, thank u so much for this vid. not all of us working in software development are computer scientists. I for one am a mobile app developer and do not even have much experience in middleware or backend and I did Civil Engineering for my major. This makes jwt so much more clearer

  • @ozzyfromspace
    @ozzyfromspace 3 ปีที่แล้ว +3

    Aaah! How are you such a smooth educator? Bro, you’re amazing! ✨😭👏🏽

  • @SebastianTysler
    @SebastianTysler 3 ปีที่แล้ว +2

    I love those explanations, very on point! But because of those "cliff-hangers" at the end of each video I watched like 4 videos in the row! There always seems to be something more to learn that is being explained "in the next video". Thanks for the tutorials! Very high quality of content!

  • @sathiraguruge9269
    @sathiraguruge9269 ปีที่แล้ว

    A great explanation ! Its amazing how you have simplified things and explained key pieces in JWT using real world scenarios !

  • @Mci146
    @Mci146 2 ปีที่แล้ว

    Simply brilliant way of explaining concepts, never have i seen such a smooth flow, lots to learn from this master!

  • @kemekenneth
    @kemekenneth 3 ปีที่แล้ว

    There's level to this thing called teaching. Thank you for the simple illustrations

  • @a3chowdh
    @a3chowdh ปีที่แล้ว

    One of the best tutorial videos I have come across on youtube recently

  • @BMEHARSHITGUPTA
    @BMEHARSHITGUPTA 2 ปีที่แล้ว

    Simply wow. I understood that in one go. Thank you for such a simple, in-overwhelming definition and examples

  • @2024prakash
    @2024prakash 3 ปีที่แล้ว

    This is one of the best explantions I have seen on this topic. Simple and clear!

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 8 หลายเดือนก่อน

    Your Explanation & Example is TOO GOOD & Out of this World

  • @sarithathota6384
    @sarithathota6384 4 ปีที่แล้ว +12

    I was searching for 'how jwt works' quite some time, and I went through many sites but I didn't fully understood until I found this. Thanks Koushik for great efforts and the way you explain with your drawings is awesome.

  • @bogdankyuchukov2124
    @bogdankyuchukov2124 4 ปีที่แล้ว +29

    One of the best explinations I've had about JWT. Thanks Koushik!

    • @samueltunde4210
      @samueltunde4210 3 ปีที่แล้ว

      very hard working and skilled expert who invariably understand what a problem all about and takes the necessary massage to get it done
      □Thanks to Hackernile5 on IG I got disable to account active back aging you'll should give him a try and thanks me later
      □I'm from Florida
      Facebook logged me out leat week after I posted a picture didn't know why
      We'lli solved the problem after seeing a ton for good recommendations in the comment about Hackernile5 on IG
      He helped me to get my account back
      □Thanks to Hackernile5 on IG I woke up this morning to find my lost Facebook account password sent to my email after he hacked 3year ago

    • @CodeVolcano
      @CodeVolcano 2 ปีที่แล้ว

      th-cam.com/video/hEgdIT7AEfc/w-d-xo.html

  • @DaveO0808
    @DaveO0808 ปีที่แล้ว

    Holy.. great explanation! I did not expect to understand the JWT concept with just a single short clip! I will just continue to watch all his videos on JWT.

  • @akashkarve1991
    @akashkarve1991 4 ปีที่แล้ว

    Nice work! Simple, crisp and clear.

  • @rahulguharay401
    @rahulguharay401 4 ปีที่แล้ว

    This is a superb video .The Load balancer example was so helpful in terms of scalability and why we would want to do this .Thank you .Moving over to JWT structure and subscribing your channel

  • @sakuragi1111
    @sakuragi1111 3 ปีที่แล้ว +2

    You are so experienced. Great teacher!

  • @rohanmangale5990
    @rohanmangale5990 2 ปีที่แล้ว

    Such a beautiful and simplest way of explaining jwt. other videos on youtube directly jump on jwt but the way you explained first the session based Authorization and its drawback make things more clear why jwt is better that session based auth

  • @mohitsuryawanshi7347
    @mohitsuryawanshi7347 ปีที่แล้ว

    Your spring security videos are awesome. Thanks for clearing our concepts

  • @PrabhatKumarJ
    @PrabhatKumarJ 6 หลายเดือนก่อน

    I just love the examples given to explain the use case in every tutorial. It is awesome. Thank you @Java Brains

  • @JunaidParacha
    @JunaidParacha 3 ปีที่แล้ว

    The analogies are simply brilliant. Even a two year old can understand this. A job well done!

  • @hamzaabid7424
    @hamzaabid7424 4 ปีที่แล้ว +40

    Thank you for your efforts I really appreciate it.

    • @samueltunde4210
      @samueltunde4210 3 ปีที่แล้ว

      very hard working and skilled expert who invariably understand what a problem all about and takes the necessary massage to get it done
      □Thanks to Hackernile5 on IG I got disable to account active back aging you'll should give him a try and thanks me later
      □I'm from Florida
      Facebook logged me out leat week after I posted a picture didn't know why
      We'lli solved the problem after seeing a ton for good recommendations in the comment about Hackernile5 on IG
      He helped me to get my account back
      □Thanks to Hackernile5 on IG I woke up this morning to find my lost Facebook account password sent to my email after he hacked 3year ago

  • @soumyarao8199
    @soumyarao8199 2 ปีที่แล้ว

    Thank you for the wonderful explanation of the concept. The analogy makes all the difference between simple and complex!

  • @ramprakash7872
    @ramprakash7872 2 ปีที่แล้ว

    The concept is beautifully explained in a very easy manner cutting all un necessary jargons.

  • @Ala.obeidat
    @Ala.obeidat 3 ปีที่แล้ว

    Such a beautiful explanation. It is more like a story rather than a tutorial

  • @sisisisi6
    @sisisisi6 4 ปีที่แล้ว +3

    Interesting! We’re currently implementing this in our team. Now I understand it better. Thanks!

    • @samueltunde4210
      @samueltunde4210 3 ปีที่แล้ว

      very hard working and skilled expert who invariably understand what a problem all about and takes the necessary massage to get it done
      □Thanks to Hackernile5 on IG I got disable to account active back aging you'll should give him a try and thanks me later
      □I'm from Florida
      Facebook logged me out leat week after I posted a picture didn't know why
      We'lli solved the problem after seeing a ton for good recommendations in the comment about Hackernile5 on IG
      He helped me to get my account back
      □Thanks to Hackernile5 on IG I woke up this morning to find my lost Facebook account password sent to my email after he hacked 3year ago❣️❣️✏️

  • @user-vd2te7vb1e
    @user-vd2te7vb1e 8 หลายเดือนก่อน

    really good explaining, finally I understand the diffirence between TOKEN & JWT. Content easy to follow, well done!

  • @john-blair
    @john-blair 3 ปีที่แล้ว

    Excellent explanation. Thanks! JWT gets around the load balancer/session problem, especially where lots of microservices are used.

  • @saqibabdul9262
    @saqibabdul9262 2 ปีที่แล้ว

    I really like the way you explain any concept with a very simple story.

  • @juilipanse-kanade9583
    @juilipanse-kanade9583 2 ปีที่แล้ว

    The clearest explanation I have seen of JWT on web

  • @hafizmfadli
    @hafizmfadli 3 ปีที่แล้ว

    After watch some tutorials i have not understand what difference bertween session and JWT, but after learn from your explanations, now i can figure out what they are, and have good understanding of how they are work.Thank you sir.

  • @nitingupta1417
    @nitingupta1417 3 ปีที่แล้ว +1

    I enjoyed your tutorial and the analogy that you use was awesome.

  • @Overthought7
    @Overthought7 4 ปีที่แล้ว +1

    This is a REALLY good explanation video. Thanks so much!

  • @amanimavu810
    @amanimavu810 2 ปีที่แล้ว

    awesome video👍. I love the use of analogies to give a better understanding of what JWT is and how it works.

  • @monishkamble9066
    @monishkamble9066 4 ปีที่แล้ว

    Wow..!! Your way of explaining things with analogies is awesome.. Thank You..

  • @shailendrapandit440
    @shailendrapandit440 2 หลายเดือนก่อน

    watched many videos, yours was the most comprehensive and easy to understand,thank you so much.

  • @bg-mq5hz
    @bg-mq5hz ปีที่แล้ว

    Just the right content, flow and elegantly presented. Thank you, Kaushik!

  • @chongyulius
    @chongyulius 3 ปีที่แล้ว

    Such a good explanation!! Really saved my time helping me understanding those concepts and why it is like this

  • @Kanishka6619
    @Kanishka6619 4 ปีที่แล้ว

    Hi Koushik im from .Net background and I was searching for many websites to understand the concept of JWT, but none of them have a very clear explanation like this. I'm really loving the way you explain each and every concept with a nice pictorial representation.Keep posting lot more videos which will be very helpful for many of them like me. Also please post vedios related to .Net if you have that would really be great

  • @PhilCaisley
    @PhilCaisley ปีที่แล้ว

    Such a clear conceptual description, thank you

  • @sumankalyanghosh4838
    @sumankalyanghosh4838 4 ปีที่แล้ว

    It really helped me to understand the concept. Thank you.

  • @milanpaudyal7671
    @milanpaudyal7671 4 ปีที่แล้ว

    Very interestingly explained in a simple way. Thank you so much

  • @madhun7073
    @madhun7073 4 ปีที่แล้ว

    Its just awesome!! The way u explained is just fab!!! Thanks sooo much for the videos you are making!

  • @luiscisneros9076
    @luiscisneros9076 4 ปีที่แล้ว

    Thank you, very good explanation. Made simple to understand the concept.

  • @akware977
    @akware977 4 ปีที่แล้ว

    Thank you Java Brain for another awesome concept

  • @johnsnow2810
    @johnsnow2810 3 ปีที่แล้ว

    Amazing explanation! Thank you!
    I knew these thing but your analogies are excellent.

  • @junaidshaikh1177
    @junaidshaikh1177 4 ปีที่แล้ว

    Best explanation I've seen so far!

  • @aileenchan3741
    @aileenchan3741 2 ปีที่แล้ว

    You're such a great teacher. I really enjoy your videos and ease in your explanations! Thank you so much and bless you.

  • @RondellKB
    @RondellKB 3 ปีที่แล้ว

    This is by FAR the best and most intuitive explanation I've seen on JWT

    • @samueltunde4210
      @samueltunde4210 3 ปีที่แล้ว

      very hard working and skilled expert who invariably understand what a problem all about and takes the necessary massage to get it done
      □Thanks to Hackernile5 on IG I got disable to account active back aging you'll should give him a try and thanks me later
      □I'm from Florida
      Facebook logged me out leat week after I posted a picture didn't know why
      We'lli solved the problem after seeing a ton for good recommendations in the comment about Hackernile5 on IG
      He helped me to get my account back
      □Thanks to Hackernile5 on IG I woke up this morning to find my lost Facebook account password sent to my email after he hacked 3year ago❣️❣️✏️

  • @SergDMK
    @SergDMK 4 ปีที่แล้ว

    One of the BEST explanations!!! Easily understood what JWT is.

  • @kks2105
    @kks2105 7 หลายเดือนก่อน

    Hands down one of the best explanation .. Thank you..

  • @anuragshukla8905
    @anuragshukla8905 3 ปีที่แล้ว

    I cannot thank you enough for the work that you do

  • @ryanjosephlock
    @ryanjosephlock 2 ปีที่แล้ว

    As a programming amateur, this explanation is so good.

  • @frankkolarek843
    @frankkolarek843 3 ปีที่แล้ว

    This is awesome! So well explained. Thank you!

  • @pinxtr
    @pinxtr 4 ปีที่แล้ว +2

    One of the best explanations out there on the internet. Thank you!

    • @samueltunde4210
      @samueltunde4210 3 ปีที่แล้ว

      very hard working and skilled expert who invariably understand what a problem all about and takes the necessary massage to get it done
      □Thanks to Hackernile5 on IG I got disable to account active back aging you'll should give him a try and thanks me later
      □I'm from Florida
      Facebook logged me out leat week after I posted a picture didn't know why
      We'lli solved the problem after seeing a ton for good recommendations in the comment about Hackernile5 on IG
      He helped me to get my account back
      □Thanks to Hackernile5 on IG I woke up this morning to find my lost Facebook account password sent to my email after he hacked 3year ago❣️❣️✏️

  • @felipevillarroel6259
    @felipevillarroel6259 3 ปีที่แล้ว

    Such a great explained video, thank you mate!

  • @yifanyang6400
    @yifanyang6400 4 ปีที่แล้ว

    Bravo! I should have found your channel 100 years ago!

  • @Hoobee26
    @Hoobee26 4 ปีที่แล้ว

    Brilliantly explained. Thank you.

  • @firecode6937
    @firecode6937 2 ปีที่แล้ว

    the great explanation plus the text version ... gosh
    thanks, bro !!

  • @boscodomingo
    @boscodomingo ปีที่แล้ว

    Wow this was incredibly easy to follow and understand. Thanks!!!

  • @jessewallace6147
    @jessewallace6147 ปีที่แล้ว

    That was one of the best explanation videos I've seen in a long time. Kudos!

  • @shobhitsingh7735
    @shobhitsingh7735 3 ปีที่แล้ว

    A beautiful cinematic tutorial 🤩, hats off to you.

  • @zhupdhk
    @zhupdhk 2 ปีที่แล้ว +1

    Thank you so much for this video! In no way can I describe to you how helpful it has been to my understanding. Keep up the great content!