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

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

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

  • @JokerAob
    @JokerAob 10 ชั่วโมงที่ผ่านมา

    Bytemonk, I've watched a few of your videos and they are great!
    Very well explained.
    Thank you!

  • @daddylubarsky3049
    @daddylubarsky3049 4 หลายเดือนก่อน +2

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

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

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

  • @thirue8237
    @thirue8237 21 วันที่ผ่านมา

    Very crisp and detailed, very well explained about tampering.

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

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

      Thanks

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

    Pls make a video on rtmp streaming architecture that handle scalability

  • @smritisharan-sfdcamplified
    @smritisharan-sfdcamplified 9 หลายเดือนก่อน +1

    excellent

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

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

  • @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)

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