OAuth 2.0 access tokens explained

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Try it out at oauth.com/play... and sign up for a forever-free developer account at developer.okta...
    Aaron's book: OAuth 2.0 Simplified amzn.to/2S6Uj4e
    Check out our new video course! The Nuts and Bolts of OAuth 2.0
    oauth2simplifi...
    Sign up for our monthly newsletter! a0.to/zeroindex

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

  • @graemegeldenhuys9102
    @graemegeldenhuys9102 4 года назад +75

    Brilliant analogy and very well explained so everybody can understand it. Thanks for sharing.

  • @coding3438
    @coding3438 2 года назад +12

    Absolutely mind blowing, I can't recall if I've ever seen anything explained so beautifully on RUclips before. Thanks!

  • @MrSaiAarya
    @MrSaiAarya 5 лет назад +12

    I was trying to think of a real world example to explain about OAUTH, your example is spot on and your explanation and correlation with the concept is awesome!! Great job and thanks for posting it!!

  • @potatouser12345
    @potatouser12345 Год назад +3

    Great analogy. We need more brilliant educators like you

  • @geektoolkit
    @geektoolkit Год назад +2

    I just learned more in 3 minutes watching you than I did in 20 minutes watching other content. Thankyou for a clear concise explanation that had an amazing analogy!

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

      Glad it was helpful!

  • @blackkiritok
    @blackkiritok 4 года назад +15

    This was literally the smoothest explanation I have seen so far! Thank you so much.

  • @coding-gemini
    @coding-gemini 2 года назад +1

    Nicely explained, This is the Authorization part for accessing the API

  • @pulkitverma2864
    @pulkitverma2864 2 года назад +2

    Very well explained. Now I will never forget this!

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

    This is such a perfect analogy. THANK YOU

  • @richardgordon8707
    @richardgordon8707 5 лет назад +8

    Thank you very well explained ! I am great at explaining anything to do with car engines and car parts but not good at understanding computers and how the programs work..i can use a laptop and work my way around but have some trouble understanding things such as URLs and tokens and so on.Thank you so much for taking the time to explain this ! You helped me so much !! Great Video very well explained , this really helps people like me who are not great with computers ..Hope to see more videos from you...!!

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

    Your explanation is superb! What an underrated channel here on RUclips 😱

  • @coolbuddy167
    @coolbuddy167 2 года назад +1

    Perfect example. Thanks for posting

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

    Very good analogy. Simple but clear explanation

  • @ash143aish
    @ash143aish 2 года назад +1

    Super.........and to the point ...helped in thinking more clearly about the auth process in OAuth

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

    Brilliant analogy. Love the way you articulate the concept 👏👏

  • @0sand1s31
    @0sand1s31 Год назад +1

    Amazing how you related access token with practical example.

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

      Glad you think so!

    • @0sand1s31
      @0sand1s31 Год назад

      @@OktaDev Your videos are amazing. Actually I am trying to implement oauth2 in one of my project using Springboot. However I don't find any videos related to the implementation. Could you please share few videos on the same

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

      ​@@0sand1s31 I created a video last year on how to create an OAuth 2.0 resource server with Spring Boot. Maybe it'll help? ruclips.net/video/w-qKailh3WQ/видео.html

    • @0sand1s31
      @0sand1s31 Год назад

      @@mraible Thank you. I will go through it.

  • @ningyoh3490
    @ningyoh3490 2 года назад +1

    Such an easy way to understand thanks a lot for ur knowledge sharing 🙏

  • @jhauradou
    @jhauradou 5 лет назад +4

    A simple and clear explanation!

  • @musabalriani550
    @musabalriani550 Год назад +1

    Clear as crystal 🔮 ,Thanks for sharing.

  • @andrewmaxwellcarmeichal5381
    @andrewmaxwellcarmeichal5381 3 года назад +1

    Very easy to understand and clearly delivered, thanks

  • @rongliao9255
    @rongliao9255 4 года назад +4

    Great analogy! Well done!

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

    genius analogy!! Thanks a lot!!

  • @assortedtea902
    @assortedtea902 5 лет назад +5

    Nice explanation man!

  • @johnmun1471
    @johnmun1471 3 месяца назад

    excellent explanation!!! Hotel key card. thanks.

  • @D_Bills_Racing
    @D_Bills_Racing 3 года назад +1

    Awesome simple explanation, thank you 🙏

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

    It's a good explanation of the token. I thought you'll also explain a bit OAuth 2.0 though.

  • @mairadiaz1765
    @mairadiaz1765 3 года назад +1

    great explanation!! clear, simple and short!

  • @Elte156
    @Elte156 5 лет назад +25

    At 2:30 you mentioned a "jot", is that how JWT is pronounced?

    • @aaronpk
      @aaronpk 5 лет назад +12

      Yep it is! Sorry I should have clarified that!

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

      @@aaronpk Ys. Im sured

    • @SussyBacca
      @SussyBacca 3 года назад +3

      Unfortunately yes. "jot" is arguably an oversimplification of JWT and probably slows communication long enough to lose any gained time of saying "jot" over "jay dub el you tee". Humans tend to reduce identifiers the more they're used, which is why "JSON Web Token" was reduced to "JWT" and then "jot". Since 9 in 10 people ask "what is a jot?" the first time they hear it, which causes, at minimum, a 10 second conversation that would have never happened otherwise, "jot" is arguably oversimplified. Gaining 0.5 seconds and losing 10 every time you say something is a net loss. Not to mention cryptic communication is always a poor choice (i.e. choosing a little-known, but slightly more effective word when a well-known, slightly-less effective word will do, always yields lower comprehension, and if your goal is comprehension, making that choice was, by definition, an error).
      There is an adage "Make it as simple as possible, but not simpler", taking JWT to "jot" probably violates that, however, that's what humans tend to do, so the next time you invent a cool piece of technology, try to make sure it can be reduced to 3 letters and one syllable ahead of time; you'll save a lot of people from feeling dumb :)

  • @oscardelgado4709
    @oscardelgado4709 Год назад +1

    Great explanation!🎉🎉🎉

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

    Great would like the same clear explanation for all the stuff before the access token.

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

    Very nice, excellent analogy.

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

    short...crisp....clear !!

  • @EmanuilGlavchev
    @EmanuilGlavchev 5 лет назад +3

    Good explanation... Nice tshirt.

  • @botchway44
    @botchway44 3 года назад +1

    perfectly explained

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

    Simply brilliant.

  • @masoomsanadi
    @masoomsanadi Год назад +1

    it is very simple
    unless u understand it in coding.
    🙂

  • @user-pt9xl3zx2u
    @user-pt9xl3zx2u 7 месяцев назад

    Well understood

  • @richardlanglois5183
    @richardlanglois5183 5 лет назад +2

    Great explanation!

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

    excellent!

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

    Amazing. Thank you!

  • @-q-b0_1
    @-q-b0_1 5 лет назад +1

    Good explanation

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

    Bro, you are a life saver 🔥

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

    Just like you need to have the keycard in your hand and swipe it to get in, where does the access token need to go on, say, a GET request so that the resource server knows it is allowed to give me the info I ask for? Do I put the whole token string in the Authorization parameter of the header?

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

    Brilliant analogy and very helpful for a non-IT person like me. Can sometimes these tokens/room keys for single-use? Do they usually have a validity period/lease time? Are these called Dynamic tokens?

  • @user-vc7wb9uj9z
    @user-vc7wb9uj9z 3 года назад

    cool, where refresh token may be in this analogy? maybe girl on reception that can give you a new access token if you lose yours if you show a statement about the payment of the hotel bill(this one is refresh token)

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

    i was there in the first half.😅😅

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

    How i get access token..?

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

    Excellent!

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

    it's so simple!!

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

    Does anyone know what URL to enter that redirects the seller authorization to my production application? I don't get it.

  • @1testrad
    @1testrad 3 года назад

    Thanks a lot ....

  • @user-co7sx3ld5b
    @user-co7sx3ld5b 4 года назад

    Got the point!!
    Tks sir 🤟

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

    Do you have such video regarding OIDC.
    Plz share a link

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

    Hi,
    May explain for me about after do call api refresh token to renewal access token, so current access token will being kept using or it will be expired if I use OAuth 2.0 flow.

  • @wollanooo
    @wollanooo 7 месяцев назад

    i wonder if the OAuth has got the user ID in

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

    When you say access-token, do you mean basic token or bearer. I assume it bearer. Then what is basic token in the hotel analogy?

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

      I believe there is not basic token, there is basic auth which is sually base64urlencoded username:password, this gets you a JWT

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

    How does one revoke an access token in OAuth2? Is it possible or should it be solved by having very short expirations of AccessToken?

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

    But what foed API mean btw? I m a little less lost,but still a little...

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

    Cool glasses

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

    Access token are sent to Api to access resources over a front channel- which is less secure. Does it not defeat the purpose of OAuth calls over back channel between auth service and client server ,to make it more secure? Ultimately, we get the access token which can be hacked , just like the auth code , both being passed over front channel.
    Would you please explain this, if I'm missing anything in this understanding.

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

      Check out this livestream we did recently talking more about the front channel vs back channel: ruclips.net/video/uwbqqRA7wbI/видео.html
      Access tokens are not sent to resource servers (APIs) in the front channel, they are sent in the back channel. That said, you are correct that if someone can steal an access token that is bad. It's the same as a hotel key, if you find one on the ground you can pick it up and try using it at all the doors.

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

    So the user generates a hotel key for me to use :)

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

    Whoever came up with the OAuth2 mechanism surely had the idea while checking in at a hotel. You can bet you bottom dollar.

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

    Who is the audience in this metaphor?

  • @1chucky22761
    @1chucky22761 Год назад

    Didn't help to resolve problem

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

    Thank You! #KaiBuskirk #CodeLessWorkFlows

  • @NathanHale-c6h
    @NathanHale-c6h 16 часов назад

    Walker Cynthia Robinson Sarah Young Eric

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

    So I got a creator code

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

    What is a bearer token ? Is it the same access token ?

  • @BenthamSheila-c8o
    @BenthamSheila-c8o 2 дня назад

    Lee Sharon Thompson Sarah Martinez Dorothy

  • @GeordieKama-o8g
    @GeordieKama-o8g 5 дней назад

    Lopez Margaret Clark John Williams Kimberly

  • @SaroyanPeter-d5p
    @SaroyanPeter-d5p 5 дней назад

    Lewis Sandra Harris Donna Anderson Scott

  • @HansomEden-o1g
    @HansomEden-o1g 16 часов назад

    Brown Joseph Harris Deborah Rodriguez Donna

  • @EddieMaureen-y4u
    @EddieMaureen-y4u День назад

    Hall Linda Jones Donald Clark Gary

  • @raselkarim2731
    @raselkarim2731 4 месяца назад

    This guy seems like ai generated human.

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

    This guy urgently needs a tutorial on visual aids to present complex ideas... Or he loves being in front of the camera...

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

    Thank you. Example was good, but it felt like you were repeating same thing again and again all video.. Sorry 👎

  • @LoonSeat-j4p
    @LoonSeat-j4p 6 дней назад

    Hall George Davis Lisa Moore Laura