What is the structure of a JWT - Java Brains

Sdílet
Vložit
  • čas přidán 10. 10. 2019
  • In this tutorial, we’ll understand the structure of a JWT. We’ll see how a JWT is created, what the parts of the token are and how you can construct and deconstruct a JWT yourself. We’ll also look at some of the implications of this JWT structure, and some of the resulting advantages and disadvantages of using JWTs for authorization as a direct result of how it is structured.
    Java Brains website: javabrains.io
    #JavaBrains #BrainBytes #WhatIs #JWT #Java #Tutorial #Concept

Komentáře • 316

  • @ek19751
    @ek19751 Před 4 lety +401

    1) Wake up. 2) Make a pot of coffee. 3). Binge watch Javabrains 😀. Thanks again Koushik!

    • @hattrickster33
      @hattrickster33 Před 4 lety +17

      4. Profit

    • @blazkowicz666
      @blazkowicz666 Před 3 lety

      It's crazy that I am doing the exact same thing rn

    • @cruzotto608
      @cruzotto608 Před 2 lety

      i realize Im kind of off topic but do anyone know of a good website to stream new series online ?

    • @quinnkarson7251
      @quinnkarson7251 Před 2 lety

      @Cruz Otto i watch on flixzone. You can find it on google =)

    • @cruzotto608
      @cruzotto608 Před 2 lety

      @Quinn Karson Thanks, I went there and it seems to work :D Appreciate it !!

  • @andreizakovorotny4779
    @andreizakovorotny4779 Před 4 lety +188

    An example of a perfect and meaningful explanation! That is a real gem, hard to find in the modern internet full of mediocre stuff.

    • @ujjalm007
      @ujjalm007 Před 4 lety +6

      His tutorials are really good! Great content with so much clarity

    • @rsalwi
      @rsalwi Před 3 lety

      @Shandilya's Top 5 qqqqqqqqqqqqqqqqqqqqq+qqqqqqQqqqqqqqqqqqqqq+qqqqqqqqqqqqqqqq+qqqqqqqqqqqqqqq

    • @VivoY-nq5lm
      @VivoY-nq5lm Před rokem

      ur happy

  • @rohit250289
    @rohit250289 Před 3 lety +37

    Probably the most underrated person on youtube ..He deserves many more subscribes for his top class content ...

  • @jukkahamalainen2454
    @jukkahamalainen2454 Před 4 lety +46

    Wow! Watched the introduction to JWT and then this. Even though I knew most of the technical things behind JWT, I feel the explanations behind *why* we do these things gave me way better understanding about JWT's. I wish all the content in internet would be as clear and concise as these videos were. Thank you!

  • @gangambikahogtapur3254
    @gangambikahogtapur3254 Před 3 lety +7

    Explained in a great way! Never imagined this concept to be so simple and interesting.

  • @ivanriotogonon6382
    @ivanriotogonon6382 Před 2 lety +1

    Very clear explanation! I love how you sequence your vids per topic in a way that is easy to follow. I got really stuck in one of my projects as I have to learn about JWT fast and your vids helped me understand it quickly. Thank you so much for this!

  • @rajeevg4683
    @rajeevg4683 Před 4 lety +1

    As always, clear crisp and to the point.

  • @Mci146
    @Mci146 Před 4 lety +11

    One of the best videos i have watched introducing a rather confusing concept and making it crystal clear, great work Koushik, thanks for sharing your knowledge!

  • @AbhishekChanda
    @AbhishekChanda Před 4 lety +76

    I have been working with JWT for the past 2 years and initially it was confusing and it took me some time to understand. How I wish this video was there at that time.
    Looking forward to the OAuth and Okta implementation (i think you are heading towards that only).

    • @samueltunde4210
      @samueltunde4210 Před 3 lety +2

      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❣️❣️✏️

  • @thinhle5765
    @thinhle5765 Před 2 lety +1

    The 2 videos about JWT are so well structured and very clear. Thank you so much!

  • @BluePhoenixGames1
    @BluePhoenixGames1 Před 4 lety +1

    Great tutorial! Looking forward to the next one showing how it can be implemented.

  • @MuhammadAyaz-gp7xd
    @MuhammadAyaz-gp7xd Před 5 měsíci

    Best Tutorial on Internet about JWT ❤

  • @shreeram_kulkarni
    @shreeram_kulkarni Před 2 lety +1

    As always great explantion Koushik !
    Watched this vid today, despite it being recomended quite frequently on my home page. I just wish I could have watched this video earlier.

  • @anushanuti5757
    @anushanuti5757 Před 4 lety +1

    Thank you Koushik. I cannot imagine a day without watching Java Brains and learning something new . Cant thank you enough. God Bless

  • @ra7878
    @ra7878 Před rokem +2

    I routinely come back to review these videos as I'm working on different projects. Truly elegant and clear explanation of core concepts. You have a gift for educating!

  • @jayakandadai
    @jayakandadai Před 4 lety +5

    Awesome. So intuitive to understand your tutorials. Requesting you to do one on JWT Generation and Validation in conjunction with OAuth. Thanks in advance.

  • @VasanthDeveloper
    @VasanthDeveloper Před 4 lety +8

    Was waiting for this tutorial...

  • @denizo982
    @denizo982 Před 3 lety

    Thank you! Best JWT Video on CZcams. Will definitely come back for other content.

  • @davidlira8853
    @davidlira8853 Před 2 lety

    These video series on OAuth has been super good. I love the analogies, the stick figures and basic diagrams, and did I mention analogies? Great job!

  • @abed83a
    @abed83a Před 2 lety

    One of the best, if not the very best explanation available in the youtube and I am watching such tutorials for some years. He understands it very clearly. That is why he could explain the stuff so easy to understand way. Great work!

  • @prafulsinghvit
    @prafulsinghvit Před 3 lety +1

    It's just "once in a blue moon" feeling when I wish I could like a video multiple times. Can't thank enough.

  • @santoshdash7646
    @santoshdash7646 Před 2 lety

    This tutorial makes me conceptually clear. Heads up to Java Brain.

  • @OmarNg7X
    @OmarNg7X Před 2 lety

    The first 2 questions are literally the questions I had in my mind for ages. If there's a hall of fame for tech videos, this and part I should be on it. Nice work!!

  • @thefullmoonlight
    @thefullmoonlight Před 2 lety

    Excellent videos on JWT - the previous one and this one. This is really brilliant. It is indeed true that teaching is a different skill altogether.

  • @MysticOblong
    @MysticOblong Před 2 lety

    Thanks for taking the time to create such an informative video! This answered my question about the secret part of JWTs and how that fits in with everything.

  • @cochi2221
    @cochi2221 Před 4 lety +11

    Thank you so much.
    When this JWT tutorial finishes, can you upload an OAUTH tutorial? I always try to implement it but I never understand it.

  • @mtung05
    @mtung05 Před 3 lety

    This is the best JWT explanation on the Internet!

  • @108vicky
    @108vicky Před 4 lety +2

    Thanks for this..wonderful tutorial

  • @thisalma
    @thisalma Před 4 lety +1

    Thank you very much! Your videos are very helpful and gave me the idea of JWT in an easy to understand simple way ❤️

  • @AmitKumar-we8dm
    @AmitKumar-we8dm Před 7 měsíci

    aap bahuton k liye aadarsh hain bade bhai... Dil se dhanyawaad 🙏

  • @KeshariPiyush24
    @KeshariPiyush24 Před 2 lety

    Your analogies are gem, please continue such noble work

  • @MrPeradjokic
    @MrPeradjokic Před 4 lety

    Amazing tutorial! Really appreciate your work!

  • @thellaidhinesh8646
    @thellaidhinesh8646 Před 6 měsíci

    Very very very very clear explanation, i've been referring to so many tutorials like this, i think this is the fifth video in the line, This is the best & i don't need to refer any related videos any more. Thanks for saving my time. Keep the good work going....

  • @rohansadawarte8778
    @rohansadawarte8778 Před 5 měsíci

    I never comment on any video at all. But your way of explanation is too good. It made me comment on this video. Good work, thank you so much. I got exactly all the info I was looking for

  • @PramodKumar-hu7mt
    @PramodKumar-hu7mt Před 4 lety +3

    I started my career with your tutorials.. I'm a regular follower of your videos.. Continue the good work koushik sir.. Waiting for next video

  • @munishthakur8018
    @munishthakur8018 Před 2 lety

    So many guys explaining JWT out there. But all of them miss expalining about the signature and how it protects us from hackers. Thanks for the beautiful explanation.

  • @Trippykiyay
    @Trippykiyay Před rokem

    I can’t believe i just came across your channel. This is gold, thank you!

  • @krishtheindian
    @krishtheindian Před 3 lety +1

    Just one word - Brilliant!

  • @BryanRodriguez-sp2gq
    @BryanRodriguez-sp2gq Před 3 lety +1

    Best explanation found, thanks java brains!!

  • @brunocardoso8277
    @brunocardoso8277 Před 4 lety

    I watched this video, figured out and it makes possible to solve a problem easily. Thank you very much!! you're spreading knowlodge around the world! Greetings from Brazil!!

  • @adryelgainza1686
    @adryelgainza1686 Před 2 lety

    Going down the JWT rabbit hole. Thanks for the great free videos man !!!

  • @pushpakgupta22
    @pushpakgupta22 Před 3 lety

    thanks man. Really cleared the entire concept in half hour. Very nice explanation

  • @gdIndia199
    @gdIndia199 Před 2 lety

    it's all time best video on JWT. Great. Thank you

  • @NareshKumarD107
    @NareshKumarD107 Před 4 lety

    thank u so much, gained a lot of knowledge about JWT by watching this video

  • @stephenwall9036
    @stephenwall9036 Před 2 lety

    Now finally, I understand it!! Thanks for this. Great explanation.

  • @asawari520
    @asawari520 Před 2 lety

    This is so addictive , I watch your videos just like a documentry or show on ott . you are an awesme guru , great narrator ,orator , animator , teacher , architect and yes the java programmer ! you just simplify this imaginary coding concepts!

  • @i_am_wiz
    @i_am_wiz Před 4 měsíci

    Couldn't be more perfect. Kudos

  • @sharathchandrareddy8959

    Simple and straight to the point....

  • @joeporsche1767
    @joeporsche1767 Před 4 lety

    You have very good explanation. It’s clear and easy to understand. Thank you.

  • @DaveO0808
    @DaveO0808 Před rokem

    I cannot help but leave a comment for the wonderful (and super helpful) java guide for newbie developers like me. Thank you!

  • @rashmisingh2894
    @rashmisingh2894 Před 4 lety +2

    Why do anybody wants to dislike this video??
    It's so amazingly explained!

    • @marioleon86
      @marioleon86 Před 3 lety

      They tapped twice like inadvertently

  • @muthuvijayan
    @muthuvijayan Před 4 lety +2

    Thanks for the nice explanation. Only thing i want to mention is to use a secure httponly cookie to store the token on the client and not local storage. As local storage data can be read by JS, it is vulnerable of XSS. Use httponly cookie instead.

  • @normanndiritu8806
    @normanndiritu8806 Před 2 měsíci

    This made JWTs very easy to understand. All explained from first principles! Amazing work @Java Brains

  • @hellomadhur
    @hellomadhur Před 2 lety

    Wonderful explanation. Thank you for this. You are doing a great service.

  • @ShivamMishra-tf6cf
    @ShivamMishra-tf6cf Před 10 měsíci

    Loved the explanation. Thank you so much!!

  • @muks
    @muks Před 4 lety

    Beautifully explained..well done. Thanks a lot.

  • @ncapp372
    @ncapp372 Před 3 lety

    thanks again Koushik, very clear as always

  • @shelduan89
    @shelduan89 Před rokem

    This is so helpful! Very simply nicely explained! Thank you

  • @mayankarora5824
    @mayankarora5824 Před 3 lety

    Thanks a lot Koushik. The questions and answers part of thid video is what I liked fhr most. I was just trying to get the answers to these questions and this video just hit right on the spot.

  • @praveeng.8018
    @praveeng.8018 Před 3 lety

    Thanks for sharing this. Very helpful.

  • @gyorgyszabo3607
    @gyorgyszabo3607 Před 2 lety

    Very good tutorials, many thanks!

  • @diego_elohim
    @diego_elohim Před rokem

    Best explanation ever about JWT

  • @kunalsingh-yj7xs
    @kunalsingh-yj7xs Před 3 lety

    Man...you are a true GURU....I am following your tutorial since long......just leave Linkedin and start teaching full time :)

  • @raharney
    @raharney Před 2 lety

    Thanks for that. Very nicely explained.

  • @StefanReich
    @StefanReich Před 4 lety +82

    The three parts of a JWT are the header, the payload and the sick nature

  • @sharadshahi4775
    @sharadshahi4775 Před rokem

    this is way beyond well presented content. Thank you alot. I am gonna go thru other videos too.

  • @manojkumarm2561
    @manojkumarm2561 Před 7 měsíci

    A quality content on JWT. Thanks much sir.

  • @benjaminhobson2085
    @benjaminhobson2085 Před 3 lety

    Another fantastic video. Thank you so much.

  • @priteshladhe5436
    @priteshladhe5436 Před 4 lety

    Thanks for the explanation in detail

  • @rajeshsingha9940
    @rajeshsingha9940 Před 2 lety

    Awesome. This is just what I needed. Thanks a lot, man.

  • @hartford1231
    @hartford1231 Před 2 lety

    excellent and clear explanation. thank you.

  • @jyothisingaram5078
    @jyothisingaram5078 Před 2 lety

    Wow what a explanation fallen in love with you for this …awesome man…excellent

  • @SantoshKumar-gp5qm
    @SantoshKumar-gp5qm Před rokem

    Very Usefull ..nice one

  • @simawdf
    @simawdf Před 4 lety

    Thanks a ton Sir...your videos are great and always awaited.

  • @soumenghosh83
    @soumenghosh83 Před 4 lety

    Excellent one. Thank you.

  • @rod9h
    @rod9h Před 3 lety

    Great video. Good explanation. Thank you.

  • @yashzala6587
    @yashzala6587 Před 2 lety

    Best Tutorial on the topic

  • @rajnishtiwari1227
    @rajnishtiwari1227 Před 3 lety

    Kouhik bhai i am saying this honestly that my search regarding the topic ended after seeing this tutorial. Best Best Best.

  • @superlistCG
    @superlistCG Před 2 lety

    Great tutorial as always.

  • @manishramesh5446
    @manishramesh5446 Před 4 lety +1

    Your videos are gems. Thank you.
    Can you make a brief video on how to write documentation for web projects.

  • @Harrybhatia16
    @Harrybhatia16 Před 4 lety +2

    One more great tutorial on this channel! Quick Question pls. In a load balanced env, will the secret key be same for all servers i.e. if a server signs and another server gets the next request, how will that workout

  • @ProgrammingTutorials1M

    Great tutorial, Thank you

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha Před 4 lety +6

    I was using JWT for months now, But this is the first time I properly understand it. Thanks . Now I must go and implements safety measures in my app.
    Just a question, If Secure signature is linked to the content, and changing content changes that signature, In my current implementation, I have added expiry time ( 24hrs in unix number ) as part of the payload. Do I still need to implement a expired token bucket?

  • @rishipahari
    @rishipahari Před 3 lety

    Thanks a lot, for clearing my doubts about Jwt.

  • @29kangka
    @29kangka Před 4 lety

    I am building an SSO... And this video series is a life saver

  • @pinxtr
    @pinxtr Před 4 lety

    Loved the explanation!

  • @chetanraj1950
    @chetanraj1950 Před rokem

    Woah...Just Amazing. Undestood totally.

  • @prajjwaltripathi2911
    @prajjwaltripathi2911 Před rokem

    Crystal Clear
    Thanks!!!!

  • @kamalbalasubramanian621

    Well done! Great explanation!

  • @kazishafin1
    @kazishafin1 Před 3 lety +1

    wish you have healthy and long life and keep making tutorials for us, the way of your teaching is AWESOMEE....Love from Bangladesh.

  • @aishwaryadwani9365
    @aishwaryadwani9365 Před 2 lety

    this content is priceless , thanks Kaushik , you are love ❤️

  • @sachinhande
    @sachinhande Před 4 lety +1

    Thanks a lot Kaushik 😊

  • @reymago23
    @reymago23 Před 4 lety

    Fantastic explanation Koushik!

  • @Martin-pb7ts
    @Martin-pb7ts Před 3 lety

    Great video. Thanks.

  • @MuhammadTayyab1
    @MuhammadTayyab1 Před 4 lety

    so easy on my ears and brain, thanks man

  • @OmSriUdayaKumarGade
    @OmSriUdayaKumarGade Před 4 lety +3

    Thanks for helping the world. We are planning to implement JWT with OAuth for the REST services, your videos helps me in better understanding. Appreciate the service you are doing Kaushik. :)

  • @051_shivangtripathi8
    @051_shivangtripathi8 Před 2 lety

    Nicely Explained JWT , thanks 👍

  • @martinlupa8692
    @martinlupa8692 Před 10 měsíci

    Amazing content! Thanks a lot!

  • @pankajutubepankaj
    @pankajutubepankaj Před 3 lety

    You are gold Koushik!!!

  • @tangomoocow
    @tangomoocow Před rokem

    brilliant explanation, thanks