JSON Web Tokens (JWTs) explained with examples | System Design

Поділитися
Вставка
  • Опубліковано 8 лют 2025

КОМЕНТАРІ • 31

  • @rhutujamehta
    @rhutujamehta 15 днів тому

    I am finding this channel very useful to understand various concepts. Thanks!

  • @thirue8237
    @thirue8237 20 днів тому

    Very crisp and detailed, very well explained about tampering.

  • @daddylubarsky3049
    @daddylubarsky3049 4 місяці тому +2

    Greatly underappreciated content. The most clear explanation I ever gotten.

  • @sidersoorma
    @sidersoorma Місяць тому

    Nice correlating between the mail and structure of JWT token !!!!

    • @ByteMonk
      @ByteMonk  Місяць тому

      Thanks! Glad you liked the analogy.

  • @riverroad935
    @riverroad935 8 місяців тому +2

    Great explanation. 👏👏

  • @RahulMehta-m4e
    @RahulMehta-m4e Рік тому +2

    good one, keep it up

  • @techthief3278
    @techthief3278 Рік тому +2

    wonderful and crystal clear examples man!!

  • @AshGkan
    @AshGkan Місяць тому

    You are awesome !

  • @smritisharan-sfdcamplified
    @smritisharan-sfdcamplified 9 місяців тому +1

    excellent

  • @jitendrachouhan7024
    @jitendrachouhan7024 Рік тому +1

    Pls make a video on rtmp streaming architecture that handle scalability

  • @vamshikrishna6001
    @vamshikrishna6001 2 місяці тому

    Nice, I guess some basic knowledge is required for this. If possible make much lengthy video to explain from basics with example.

  • @ck803
    @ck803 Рік тому

    8:56 why do you use algorithm HS256 to encode header and payload? not use base64 as usual?

    • @ByteMonk
      @ByteMonk  Рік тому +1

      The algorithm used to encode the header and payload in JSON Web Tokens (JWTs) is typically specified in the "alg" (algorithm) claim within the header of the JWT. The most common algorithms used for encoding the header and payload are various HMAC (Hash-based Message Authentication Code) algorithms, including HS256 (HMAC-SHA256).
      Base64 encoding, on the other hand, is commonly used to encode the resulting signature, which is created by hashing the concatenated header and payload with a secret key using the specified algorithm. The encoded header, payload, and signature are then combined with dots (.) to form the final JWT.

  • @nikhilgoyal007
    @nikhilgoyal007 11 місяців тому

    my notes - can be used to authenticate and authorize (@7:23)

  • @hamidmohammadi8570
    @hamidmohammadi8570 6 місяців тому

    Assuming backend just accept request that contain token. How can handle returned token from backend to use in all request of frontend(javaFX) that send to backend?
    My problem is handling token in frontend.

  • @premierde
    @premierde Рік тому

    How does the Api verify the token?

    • @leadpramod
      @leadpramod Рік тому

      API can verify the token by validating the signature

  • @achyutgawade7948
    @achyutgawade7948 7 місяців тому

    Can someone (other websites/embedded script) steal JWT token from the browser and use it on my behalf? If so, how can that be prevented?

    • @ByteMonk
      @ByteMonk  7 місяців тому

      Yes, it's possible for unauthorized parties to steal JWT tokens from a browser under certain circumstances, and then use those tokens to impersonate the legitimate user. It can be done thru XSS, MITM attacks. Use HTTPS and HttpOnly cookies to secure tokens in transit and storage. Also use short-lived JWT tokens with refresh tokens for issuing new ones. Most importantly don't store sensitive Information in JWTs, such as passwords.

  • @rajkumar-oy3ni
    @rajkumar-oy3ni 3 місяці тому +1

    your explanation is going but going fast, some time not able to catch

  • @alpachino468
    @alpachino468 11 місяців тому +1

    I could hardly understand a word of it...

    • @ByteMonk
      @ByteMonk  11 місяців тому +1

      thanks for the feedback, I will work on my audio, meanwhile you can also enable subtitles, they are being generated properly.

  • @GoatCS
    @GoatCS Рік тому +1

    You need a or a better mic. You might think it sounds good but it don't sound professional.

    • @ByteMonk
      @ByteMonk  11 місяців тому

      I got an external mic , but I think its how I am processing my audio and its being compressed, thanks for the feedback, I will work on it

    • @sypher4912
      @sypher4912 8 місяців тому +1

      @GoatCS he sounds perfectly fine.

    • @techthief3278
      @techthief3278 8 місяців тому

      Nope! His sounds pretty much enough

    • @AndrewTSq
      @AndrewTSq 7 місяців тому +1

      @@ByteMonk This is not just your video, but a lot of videos on youtube. They do not remove the low bass frequencys of the audio, so your voice is a bit hard to hear (your english is good, its just the low frequency makes it hard to hear). So the mic picks up low frequencys like rumble, or hands on the desk etc . I do not think you need a better mic, just some eq:n :)

    • @ByteMonk
      @ByteMonk  7 місяців тому

      @@AndrewTSq You are right, hope the audio quality of my recent videos has gotten better, please let me know otherwise. Thank you!