What is a JWT (JSON Web Token) and why your REST API needs it

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 36

  • @Azukayoshi
    @Azukayoshi 4 года назад +10

    Love the whiteboard presentations Nick, really helpful and well explained.

  • @joancamilomina2097
    @joancamilomina2097 9 месяцев назад

    Very clear and concise explanation, Thanks Nick, keep up the good work !

  • @Gomide83
    @Gomide83 4 года назад +2

    I liked the whiteboard, thank u for the explanation of this concept. Very clear and simple. Also, very helpful to complement the tutorial series. Thanks a lot.

  • @femus03
    @femus03 5 месяцев назад

    Clear explanation and presentation, thank you

  • @wanderingchestnut2342
    @wanderingchestnut2342 4 года назад

    Very clear explanation. I really love your work. Thank you Nick.

  • @twiksify
    @twiksify 3 года назад

    5:10 Since the header is in clear text an attacker can change the header to forge a token. A malicious user may replace the hash key, inject a key and change alg, even none is valid alg which completely bypasses the validation.
    Please do not trus the header, instead rely on the hash key used during creation of the token.

    • @nickchapsas
      @nickchapsas  3 года назад

      No one said to trusts the header. I said check against the hash which is the last part of the token

    • @twiksify
      @twiksify 3 года назад

      @@nickchapsas yes, however my point is that the hash function and hash key can be replaced to bypass validation.

    • @nickchapsas
      @nickchapsas  3 года назад

      @@twiksify They can but they are part of the hash itself so if you change them then the hash that you produce during token validation won't match the hash in the token.

    • @twiksify
      @twiksify 3 года назад

      @@nickchapsas There are several headers to change the hash key (kid, x5c, x5u) to make validation pass against an injected secret. The header alg can also be misused to make a public key to act as symmetric key, this is only applicable if the server is configured to use a cert however.

    • @nickchapsas
      @nickchapsas  3 года назад

      @@twiksify Sorry I think you don't quite understand how JWTs and the validation against them works

  • @secretmind92
    @secretmind92 4 года назад

    Simple and straight to the point, thank you.

  • @eniluck5071
    @eniluck5071 3 года назад

    Thanks for explaining and comparison of jwt and cookie.

  • @CecilPhillip
    @CecilPhillip 5 лет назад +1

    Really good explanation on JWTs

  • @caikhenrik10
    @caikhenrik10 4 года назад

    thats a realy good video. Nice work and keep doing videos!

  • @FabioGomesCG
    @FabioGomesCG 4 года назад

    Nice explain... Ty

  • @soesoemaw4518
    @soesoemaw4518 4 года назад

    Thank you so much.

  • @funkel1989
    @funkel1989 5 лет назад

    doing a video on an implementation of this would also be great.
    It would also be cool to see a video on the use of that auto mapper tool you've talked about a few times. learning how to use that would save tons of time. Also, while I'm not sure how popular it would be on youtube but showing some unit testing, especially of your posts service, would be a great help. Unit testing entity framework is annoying.

    • @donoboyle8718
      @donoboyle8718 4 года назад

      He has one! ruclips.net/video/M6AkbBaDGJE/видео.html

  • @shashankpandey1019
    @shashankpandey1019 4 года назад +1

    please make a video on identity server

  • @MrSabifa
    @MrSabifa 5 лет назад

    Great explanation!

  • @germanrodrigoalvarez8182
    @germanrodrigoalvarez8182 5 лет назад

    Great video !

  • @hamedmoghadasi3693
    @hamedmoghadasi3693 5 лет назад

    Good Video, Thank you

  • @yele2652
    @yele2652 2 года назад

    Hi, Nick, thanks for the video.
    I have a question:
    With Jwt, Although we dont have to store session/state on each machine, we must store the secret along with a method that checks the token validity on each machine.
    Having said that, is jwt better than session/state (for that specific aspect)?

  • @serhiihorun6298
    @serhiihorun6298 4 года назад

    Thanks

  • @InCircle
    @InCircle 4 года назад

    Can we have video on AD Authentication in Web API .net core ?

  • @murunwascengy2762
    @murunwascengy2762 5 лет назад +1

    Very helpful , can you please share a github link for source code?

    • @nickchapsas
      @nickchapsas  5 лет назад +1

      There is no source code for this specific video but I will be releasing the code in the next video which is the implementation video for this concept.

  • @MrTalhakamran2006
    @MrTalhakamran2006 4 года назад

    It still doesn't make any sense.
    How is it different then sending password. I mean if someone hacks my computer and copies the JWT, he/she can access my account on website?

    • @MrTalhakamran2006
      @MrTalhakamran2006 4 года назад

      I meant to say it only solves the problem where we have cluster but it doesn't strengthen the authentication.
      In one of your replies below, you mentioned that authentication or JWT can be secured using HTTPS.
      So I guess JWT + HTTPS is the secure way to go.
      Can you explain how it is different than CSRF?

  • @livelaurent
    @livelaurent Год назад

    Using a cluster as a reason why JWT are even existing is wrong… Clusters are very easy way to handle that (shared session storage etc.), this video is misleading a lot of people by explaining a reason for JWT that is not really a good reason. (I’m not going to explain it but people should look at some resources, one of the main reason is about distributed system and that cannot always authenticate you against the original system for instance, or having tickets with only a specific set of claims etc.. but Load balancing is def. NOT a reason why JWT exists, there are so many ways to handle that and it was there way before JWT)

  • @lucisaeterna3590
    @lucisaeterna3590 5 лет назад

    'How to implement Google/Microsoft/Twitter... authentication?'

    • @nickchapsas
      @nickchapsas  5 лет назад +1

      Great proposal. My next video will be about that. Thanks!

  • @Alakeks
    @Alakeks Год назад

    Thanks