What is the structure of a JWT - Java Brains

แชร์
ฝัง
  • เผยแพร่เมื่อ 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

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

  • @ek19751
    @ek19751 4 ปีที่แล้ว +398

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

    • @hattrickster33
      @hattrickster33 4 ปีที่แล้ว +17

      4. Profit

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

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

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

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

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

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

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

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

  • @andreizakovorotny4779
    @andreizakovorotny4779 4 ปีที่แล้ว +187

    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 4 ปีที่แล้ว +6

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

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

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

    • @VivoY-nq5lm
      @VivoY-nq5lm ปีที่แล้ว

      ur happy

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

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

  • @jukkahamalainen2454
    @jukkahamalainen2454 4 ปีที่แล้ว +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 3 ปีที่แล้ว +7

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

  • @AbhishekChanda
    @AbhishekChanda 4 ปีที่แล้ว +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 3 ปีที่แล้ว +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 2 ปีที่แล้ว +1

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

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

    As always, clear crisp and to the point.

  • @Mci146
    @Mci146 4 ปีที่แล้ว +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!

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

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

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

    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!

  • @ra7878
    @ra7878 ปีที่แล้ว +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!

  • @ivanriotogonon6382
    @ivanriotogonon6382 2 ปีที่แล้ว +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!

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

    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!

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

    Thank you! Best JWT Video on TH-cam. Will definitely come back for other content.

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

    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!!

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

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

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

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

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

    This is the best JWT explanation on the Internet!

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

    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!

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

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

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

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

  • @PramodKumar-hu7mt
    @PramodKumar-hu7mt 4 ปีที่แล้ว +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

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

    Your analogies are gem, please continue such noble work

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

    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.

  • @jayakandadai
    @jayakandadai 4 ปีที่แล้ว +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.

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

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

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

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

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

    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 4 ปีที่แล้ว +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.

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

    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!!

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

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

  • @AmitKumar-we8dm
    @AmitKumar-we8dm 6 หลายเดือนก่อน

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

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

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

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

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

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

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

  • @VasanthDeveloper
    @VasanthDeveloper 4 ปีที่แล้ว +8

    Was waiting for this tutorial...

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

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

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

    Amazing tutorial! Really appreciate your work!

  • @kunalsingh-yj7xs
    @kunalsingh-yj7xs 3 ปีที่แล้ว

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

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

    Thanks for this..wonderful tutorial

  • @ShivamMishra-tf6cf
    @ShivamMishra-tf6cf 9 หลายเดือนก่อน

    Loved the explanation. Thank you so much!!

  • @MuhammadAyaz-gp7xd
    @MuhammadAyaz-gp7xd 5 หลายเดือนก่อน

    Best Tutorial on Internet about JWT ❤

  • @muthuvijayan
    @muthuvijayan 4 ปีที่แล้ว +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.

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

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

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

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

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

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

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

    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.

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

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

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

    A quality content on JWT. Thanks much sir.

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

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

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

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

  • @i_am_wiz
    @i_am_wiz 3 หลายเดือนก่อน

    Couldn't be more perfect. Kudos

  • @thellaidhinesh8646
    @thellaidhinesh8646 5 หลายเดือนก่อน

    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....

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

    thanks again Koushik, very clear as always

  • @shreeram_kulkarni
    @shreeram_kulkarni 2 ปีที่แล้ว +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.

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

    Best explanation ever about JWT

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

    Simple and straight to the point....

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

    This is a beautiful explanation

  • @BryanRodriguez-sp2gq
    @BryanRodriguez-sp2gq 3 ปีที่แล้ว +1

    Best explanation found, thanks java brains!!

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

    Thanks a lot, for clearing my doubts about Jwt.

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

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

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

    Beautifully explained..well done. Thanks a lot.

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

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

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

    Crystal Clear
    Thanks!!!!

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

    Thanks for the explanation in detail

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

    Just one word - Brilliant!

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

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

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

    Best Tutorial on the topic

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

    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.

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

    Another fantastic video. Thank you so much.

  • @martinlupa8692
    @martinlupa8692 9 หลายเดือนก่อน

    Amazing content! Thanks a lot!

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

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

  • @Harrybhatia16
    @Harrybhatia16 4 ปีที่แล้ว +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

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

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

  • @051_shivangtripathi8
    @051_shivangtripathi8 2 ปีที่แล้ว

    Nicely Explained JWT , thanks 👍

  • @rohansadawarte8778
    @rohansadawarte8778 5 หลายเดือนก่อน

    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

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

    Thanks for that. Very nicely explained.

  • @praveeng.8018
    @praveeng.8018 2 ปีที่แล้ว

    Thanks for sharing this. Very helpful.

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha 4 ปีที่แล้ว +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?

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

    Highly appreciate the way of instruction
    Thanks for the best explanation ❤️❤️

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

    Great explanation mate! Appreciate it.

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

    Excellent. Waiting for the next video. As many of your followers requested, please do video for OAuth2 as well.

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

    Very good tutorials, many thanks!

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

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

  • @sriplano748
    @sriplano748 10 หลายเดือนก่อน

    Really brilliant explanation. Would it be possible to create a summary diagram that gives an overview of the concepts taught. This would help us to brush through the concepts taught. You make it sound so easy.. Kudos to you!!

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

    Love your presentation skills and content with practical example. You made it look so easy to digest. Have been reading different blogs but was not able to get clarity. Thanks for the wonderful video. Out of curiosity do you have series on Linkedin learning ?

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

    excellent and clear explanation. thank you.

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

    Loved the explanation!

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

    Amazing, top class, thank u!

  • @nisarul-dev
    @nisarul-dev ปีที่แล้ว

    Thank you for a amazing explanition.

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

    Well done! Great explanation!

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

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

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

    Great tutorial as always.

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

    Great video. Good explanation. Thank you.

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

    Thank you for the tutorial.

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

    You are so awesome. It's the best video on JWT.

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

    From what I've gathered in the last videos, authorization is mainly validating if a logged-in user has access privileges to a certain endpoint once the user has been authenticated by the server(by any manner: JDBC/LDAP/JPA). In this video, it seems like JWT is only working towards authenticating rather than authorizing specific resources as you did by using antMatchers and ROLES in the previous videos. I hope the next video demonstrates authorization using JWT.

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

    brilliant explanation, thanks

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

    can't wait to see the next video