The Surprising Story About JWT

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

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

  • @CodeSource
    @CodeSource  20 วันที่ผ่านมา +9

    Thank you Permit for sponsoring this video , Check them out at - codesource.io/permit

  • @AmanRawat-s9m
    @AmanRawat-s9m 20 วันที่ผ่านมา +40

    Secure, stateless, and still somehow stressful. Classic JWT. 😅

    • @NubeBuster
      @NubeBuster 18 วันที่ผ่านมา +1

      Let's talk about revoking tokens. Stateless? No?
      Alright, session token with cache is much better than innit?

    • @xoeiie
      @xoeiie 14 วันที่ผ่านมา

      It's never has been secure😅

  • @codeninja-d3w
    @codeninja-d3w 20 วันที่ผ่านมา +27

    In the world of reaction videos on coding articles 😅, great to see the quality of your videos increasing.

    • @CodeSource
      @CodeSource  20 วันที่ผ่านมา +1

      Glad you like them!

  • @esra_erimez
    @esra_erimez 19 วันที่ผ่านมา +10

    The importance of this video simply cannot be overstated. Well done.

  • @CloudiaNgaming
    @CloudiaNgaming 19 วันที่ผ่านมา +13

    Nice video, I can see you put in a lot of effort! :)
    However I think it sometimes is a little too expressive. You already have good content, so you dont need to satisfy us with new visuals every second of the video to make it great.
    Nice work. 😄 You’ll get more viewers very quickly with this high quality!

  • @duckboi0407
    @duckboi0407 18 วันที่ผ่านมา +1

    Great video editting! The cinematic effects are amazing and very enjoyable.

  • @Karurosagu
    @Karurosagu 18 วันที่ผ่านมา +4

    My only problem with JWT is that I find it very complex and hard to understand, and yet a lot of people implement it without knowing how it exactly works, actually, I think that a lot of devs that don't even know what a cookie is don't now what JWT is either, and yet they use it because it is "easy"
    They may be easy to use but they are more complex than serverside sessions with cookies, which are a lot more simpler to use, even though they require more work

  • @jozsefsebestyen8228
    @jozsefsebestyen8228 15 วันที่ผ่านมา +1

    Short living JWT is for service-to-service communication in trusted network. For external systems use sessions which can be revoked in case of misuse. It is an implementation detail if you map your session to short living JWT for apps internal communication on each request.

  • @codingwithzak09
    @codingwithzak09 20 วันที่ผ่านมา +4

    Great quality video! Love to see the effort being put into it

  • @hebersolano5093
    @hebersolano5093 19 วันที่ผ่านมา +3

    Really good video, it's not common to see this days

  • @richarddefortune1329
    @richarddefortune1329 13 วันที่ผ่านมา

    Nice work 👏

  • @dot49190
    @dot49190 20 วันที่ผ่านมา +9

    No more ads interrupting the flow of the video please

    • @CodeSource
      @CodeSource  20 วันที่ผ่านมา +4

      Thanks for the feedback; I will work on it. Also, you can always use the chapters feature to navigate through the video.

    • @lovecoffeebutitmakesmegostutuu
      @lovecoffeebutitmakesmegostutuu 18 วันที่ผ่านมา +9

      You're watching a well edited video which I assume took hours or days to be made... for free. He has to make money somehow, I don't think it's too hard to jump after the ad or just wait it out. Short format videos have burned so many brains lol.

    • @sawyer303
      @sawyer303 17 วันที่ผ่านมา

      @@lovecoffeebutitmakesmegostutuu have paid premium for years already

    • @dealloc
      @dealloc 17 วันที่ผ่านมา +4

      The video itself is an ad.

  • @DiegoSanchez-ih5sd
    @DiegoSanchez-ih5sd 10 วันที่ผ่านมา

    I don't like that corners of the video are blurred, it worsens readability.

  • @godsgiftmonday2847
    @godsgiftmonday2847 19 วันที่ผ่านมา +4

    The best practices is hybrid approach
    JWT + session 🛡️ for maximum security ❤

    • @orhanfirik
      @orhanfirik 18 วันที่ผ่านมา +1

      You mean storing session in a Redis like db right?

    • @godsgiftmonday2847
      @godsgiftmonday2847 18 วันที่ผ่านมา +1

      @orhanfirik yeah
      JWT
      Session
      Redis

  • @sanampakuwal
    @sanampakuwal 18 วันที่ผ่านมา

    Editing is lit!

  • @greenzest
    @greenzest 17 วันที่ผ่านมา

    This is a great video, thank you !

  • @definitlyarealperson7041
    @definitlyarealperson7041 19 วันที่ผ่านมา +1

    Love the video!
    Just a quick question:
    In the example at 10:52, doesn’t good separation of concerns solve this problem?
    Why does anybody need to manage the algorithms of JWT after its initial implementation?

    • @CodeSource
      @CodeSource  19 วันที่ผ่านมา +3

      Yes, Good separation of concerns helps, but JWT algorithms must be managed over time to address evolving standards and vulnerabilities. Security isn’t “set and forget. 😊

  • @brigadut
    @brigadut 18 วันที่ผ่านมา

    JWT is safe unless you use it in wrong way like exposing it in local storage or not encrypting the data that inside the token

  • @abdirahmann
    @abdirahmann 18 วันที่ผ่านมา +17

    all the problems mentioned are just skill issues tbh, am too lazy to write a gigantic comment elaborating solutions to all these "problems" but anyways!

    • @robfielding8566
      @robfielding8566 16 วันที่ผ่านมา +3

      well, I don't like it when people just vaguely talk about "skill issues". If a JWT library obeys non-signatures, then it's the spec itself that is the issue. As soon as you use JWT as a format, people start pulling in insecure libraries. You would not tolerate a cipher that exposed data without a valid key, no? But we tolerate exactly this with signatures! It's bad that it is standard cryptographic practice to: header:plaintext:Sig(plaintext) is a very bad pattern. It is better to hide the plaintext until AFTER a signature check. (This is hard, and I only have an RSA example. But Web developers will pull out and obey the plaintext before checking the signature if it is even possible to do at all.

    • @abdirahmann
      @abdirahmann 16 วันที่ผ่านมา +3

      @robfielding8566 it's a developer problem, not standard/spec problem, the same thing can be said about bad drivers, it's not the infrastructure or car that's the problem, it's their incompetency and that's why they suck, so yeah, if a dev isn't checking the signature before they trust what the payload claims, it's their problem!!

    • @robfielding8566
      @robfielding8566 16 วันที่ผ่านมา

      @@abdirahmann the problem is that the spec is wrong. a developer downloads a library that implements the spec.
      a good developer will then go in, and start turning off garbage in the spec; to be NOT compliant with the security holes. in my case, i know that I use ES512, so write the code to throw an exception for any JWT type I did not use.
      JWT is to bad that I actually think it's a trojan horse from a security agency. I don't think the bugs are an accident.

  • @neversleepy
    @neversleepy 6 วันที่ผ่านมา

    TLDV; With Vigilance and Precision, JWTs Remain Not Just a Tool, but a Testament to the Evolving Art of Web Security.

  • @KallMeMoh
    @KallMeMoh 15 วันที่ผ่านมา

    I don't understand why JWT is blamed for the mentioned reasons?
    To me it looks more like a dev's problem of lack of a good understanding of web security.

  •  18 วันที่ผ่านมา

    Your fonts in this video are too blurry.

  • @69k_gold
    @69k_gold 18 วันที่ผ่านมา

    Please use a good font, this isn't 1450

  • @Leandrys_
    @Leandrys_ 16 วันที่ผ่านมา

    That's fake, if you sign the token correctly it can be spoofed ... The token signature will not match and will be declined, every change in the token will change the signature so... Forget this idea

  • @gabiold
    @gabiold 17 วันที่ผ่านมา

    We really need blurry text and chromatic aberration in a supposedly educational video?
    Not very informative (to me). It does not quite address any of the issues with any other than "just so you know" detail, it is a quite layman indtroductory kind-of talk.

  • @vivekacharya3652
    @vivekacharya3652 18 วันที่ผ่านมา

    I thought james webb telescope...

  • @h7hj59fh3f
    @h7hj59fh3f 18 วันที่ผ่านมา

    jwt is pronounced "jot" btw, much easier than "jay double-ewe tee"

    • @CodeSource
      @CodeSource  18 วันที่ผ่านมา

      I know, but I prefer J-W-T. You might want to check the interview with one of the creator of JWT, Link in the description😄

  • @anon_y_mousse
    @anon_y_mousse 19 วันที่ผ่านมา +1

    Wait, I thought JWT was Java Web Toolkit. Can't we stop reusing acronyms already and stop trying to confuse people.

    • @CodeSource
      @CodeSource  19 วันที่ผ่านมา +2

      Well, You will be surprised to know that many Dev's pronounce JWT as "Jot"

    • @anon_y_mousse
      @anon_y_mousse 18 วันที่ผ่านมา +1

      @@CodeSource That's not so surprising. Most devs these days are trash. Having bad habits just goes hand in hand.

    • @warrenarnoldmusic
      @warrenarnoldmusic 16 วันที่ผ่านมา +1

      ​@@anon_y_moussedaddy chill , java is dead this days we use fancy languages like typescript and rust

    • @anon_y_mousse
      @anon_y_mousse 16 วันที่ผ่านมา +1

      @@warrenarnoldmusic Java was dead 25 years ago. Real programmers use C.

    • @warrenarnoldmusic
      @warrenarnoldmusic 14 วันที่ผ่านมา +1

      @@anon_y_mousse damn i used to think C is an acronym, damn you guys were wild efficient with your naming, i bet yall applied the same to your variables and functions

  • @amanpatnekar123
    @amanpatnekar123 15 วันที่ผ่านมา

    Didn't understand a word

  • @keshavmainali3687
    @keshavmainali3687 17 วันที่ผ่านมา

    Teach us

  • @chhotichhotimagarmotibaate7055
    @chhotichhotimagarmotibaate7055 19 วันที่ผ่านมา

    Interesting

  • @keshavmainali3687
    @keshavmainali3687 17 วันที่ผ่านมา

    Nice

  • @ba3a-g
    @ba3a-g 18 วันที่ผ่านมา +1

    Nice video, but technically shit.

    • @CodeSource
      @CodeSource  18 วันที่ผ่านมา

      We don't do Technical tutorials 🙂