OAuth 2.0 access tokens explained

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

КОМЕНТАРІ • 82

  • @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 UA-cam before. Thanks!

  • @MrSaiAarya
    @MrSaiAarya 4 роки тому +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

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

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

  • @venky76v
    @venky76v 4 роки тому +2

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

  • @blackkiritok
    @blackkiritok 4 роки тому +15

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

  • @pulkitverma2864
    @pulkitverma2864 2 роки тому +2

    Very well explained. Now I will never forget this!

  • @jhauradou
    @jhauradou 5 років тому +4

    A simple and clear explanation!

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

    Your explanation is superb! What an underrated channel here on UA-cam 😱

  • @rongliao9255
    @rongliao9255 4 роки тому +4

    Great analogy! Well done!

  • @mairadiaz1765
    @mairadiaz1765 3 роки тому +1

    great explanation!! clear, simple and short!

  • @coding-gemini
    @coding-gemini 2 роки тому +1

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

  • @andrewmaxwellcarmeichal5381
    @andrewmaxwellcarmeichal5381 3 роки тому +1

    Very easy to understand and clearly delivered, thanks

  • @nikkiechu2668
    @nikkiechu2668 4 місяці тому

    This is such a perfect analogy. THANK YOU

  • @karT1455
    @karT1455 4 місяці тому

    Very good analogy. Simple but clear explanation

  • @D_Bills_Racing
    @D_Bills_Racing 3 роки тому +1

    Awesome simple explanation, thank you 🙏

  • @coolbuddy167
    @coolbuddy167 2 роки тому +1

    Perfect example. Thanks for posting

  • @assortedtea902
    @assortedtea902 5 років тому +5

    Nice explanation man!

  • @richardlanglois5183
    @richardlanglois5183 5 років тому +2

    Great explanation!

  • @ash143aish
    @ash143aish 2 роки тому +1

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

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

    Clear as crystal 🔮 ,Thanks for sharing.

  • @ningyoh3490
    @ningyoh3490 2 роки тому +1

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

  • @johfc
    @johfc 2 роки тому

    Very nice, excellent analogy.

  • @larskinder1138
    @larskinder1138 4 роки тому +2

    Simply brilliant.

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

    genius analogy!! Thanks a lot!!

  • @NoTalentGuy
    @NoTalentGuy 4 роки тому +1

    Bro, you are a life saver 🔥

  • @EmanuilGlavchev
    @EmanuilGlavchev 5 років тому +3

    Good explanation... Nice tshirt.

  • @brendan2240
    @brendan2240 3 роки тому

    Amazing. Thank you!

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

    Great explanation!🎉🎉🎉

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

    excellent explanation!!! Hotel key card. thanks.

  • @fitman84
    @fitman84 3 роки тому

    Excellent!

  • @-q-b0_1
    @-q-b0_1 5 років тому +1

    Good explanation

  • @dewinchy
    @dewinchy 3 роки тому +1

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

  • @SingaporeParthaRay
    @SingaporeParthaRay 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?

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

    excellent!

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

  • @user-co7sx3ld5b
    @user-co7sx3ld5b 4 роки тому

    Got the point!!
    Tks sir 🤟

  • @botchway44
    @botchway44 3 роки тому +1

    perfectly explained

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

  • @kpfingh6269
    @kpfingh6269 2 роки тому

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

  • @TheTubeMeister
    @TheTubeMeister 2 роки тому

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

  • @user-pt9xl3zx2u
    @user-pt9xl3zx2u 6 місяців тому

    Well understood

  • @rameez123ify
    @rameez123ify 3 роки тому

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

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

  • @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? ua-cam.com/video/w-qKailh3WQ/v-deo.html

    • @0sand1s31
      @0sand1s31 Рік тому

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

  • @drankar
    @drankar 5 років тому +1

    it's so simple!!

  • @rhmedia8303
    @rhmedia8303 4 роки тому +1

    How i get access token..?

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

  • @1testrad
    @1testrad 3 роки тому

    Thanks a lot ....

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

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

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

  • @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: ua-cam.com/video/uwbqqRA7wbI/v-deo.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.

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

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

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

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

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

  • @ErichCervantez
    @ErichCervantez 4 роки тому

    Cool glasses

  • @wollanooo
    @wollanooo 5 місяців тому

    i wonder if the OAuth has got the user ID in

  • @apoorvjaiswal9385
    @apoorvjaiswal9385 3 роки тому

    i was there in the first half.😅😅

  • @MrAkazon
    @MrAkazon 4 роки тому

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

  • @aaronbell5994
    @aaronbell5994 2 роки тому

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

  • @KaiBuskirk
    @KaiBuskirk 3 роки тому

    Thank You! #KaiBuskirk #CodeLessWorkFlows

  • @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 4 місяці тому

    Who is the audience in this metaphor?

  • @1chucky22761
    @1chucky22761 Рік тому

    Didn't help to resolve problem

  • @carsontracey8358
    @carsontracey8358 4 роки тому

    So I got a creator code

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

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

    This guy seems like ai generated human.

  • @amarnathreddydornala3615
    @amarnathreddydornala3615 4 роки тому

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