Use JWT Authorizers with Amazon Cognito and API Gateway

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ส.ค. 2024

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

  • @Munk-tt6tz
    @Munk-tt6tz 8 หลายเดือนก่อน +6

    Him: "I hate when folks don't give you all the little details that you might need..."
    Me: Subscribed

  • @Tecnologik
    @Tecnologik 2 ปีที่แล้ว +13

    This was incredibly helpful! You did a great job explaining everything thoroughly. Great quality content, keep it up man! 🙏💪

  • @robbieleegames7220
    @robbieleegames7220 2 ปีที่แล้ว +2

    That was awesome. Some people would have turned that into an hour long video and not covered all the details either. Perfect and to the point in under 14 minutes.

  • @valirjonathan2161
    @valirjonathan2161 3 ปีที่แล้ว +3

    Thanks 🙏. Please make another video where we can learn how to assign role and how to allow users with different roles to access different resources.

  • @marshalsea000
    @marshalsea000 ปีที่แล้ว

    Thanks for this concise and helpful - so many incorrect videos out there that obviously do not understand OAuth and copying from the same incorrect source.
    Warning - AWS has significantly changed various areas and you need to switch back to the Cognito v1 (on the left side menu) to make this work as expected... Yay AWS!

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

    You saved me many hours today

  • @philsown
    @philsown 2 ปีที่แล้ว

    I immediately wanted to click subscribe just because of your vibe - but I waited til you said there would be flubs and I was like "ok this guy is cool" - and actually kind of inspiring to me, too :)

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

    Huge Thank you! Simple, thorough, and spot on!

    • @focusotter
      @focusotter  ปีที่แล้ว

      Glad you liked it!

  • @zhongdaochen8221
    @zhongdaochen8221 3 ปีที่แล้ว +2

    Thanks for doing this! Really helpful and truly appreciated!

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

    Very knowledge session

  • @normanluismadrid422
    @normanluismadrid422 ปีที่แล้ว

    dayum, my man makes it look so ez lol, great video! keep up the great content!

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

    I just had to subscribe your chennel, because I was looking for some video like your for days and you save me! Thanks a lot!!!

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

    Great video Michael, tracking you man.

  • @KATABU
    @KATABU ปีที่แล้ว

    First time i feel i need to comment on a video - dude, you are amazing!

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

    Yeah Michael, way to get it together! Great job

  • @realcirno1750
    @realcirno1750 ปีที่แล้ว

    Never thought kanye west would teach me amazon cognito

  • @rodoherty1
    @rodoherty1 2 ปีที่แล้ว

    Excellent Demo - thanks for that!

  • @rupeshbajaj5438
    @rupeshbajaj5438 2 ปีที่แล้ว

    You are a life saviour

  • @justinphilpott
    @justinphilpott 2 ปีที่แล้ว

    Nice video, good clear speaking voice, thanks!

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

    Nice tutorial and well explained. I thought AWS Cognitoruns on the backend, but I see it writes out the tokens in local storage on the client.

  • @inacomic
    @inacomic 2 ปีที่แล้ว

    Thank you for making this! 🙂

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

    This video was super useful for me

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

    Super!! worked for me.

  • @jigishpthakar
    @jigishpthakar ปีที่แล้ว

    really helpful, resolved some real issue for me :D

  • @tacosdecamaron
    @tacosdecamaron 2 ปีที่แล้ว

    Thank you man. Good video and very updated!!

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

    nice explanation

  • @ricardosmith5753
    @ricardosmith5753 ปีที่แล้ว

    Dude you earned my sub! Awesome tutorial :D

  • @sakarsr
    @sakarsr 3 ปีที่แล้ว +2

    Thank you for this video. Can you make a video on how to do the same with AWS-CDK and Lambda functions?
    Nice work and Good Health.💖

  • @Hi-373
    @Hi-373 7 หลายเดือนก่อน

    great tutorial thanks

  • @user-mt4dk6xt2r
    @user-mt4dk6xt2r ปีที่แล้ว

    I really appreciate your video. It is really helpful.

  • @gavincoulson3900
    @gavincoulson3900 2 ปีที่แล้ว

    Awesome video, thanks for this.

  • @pourmog
    @pourmog 2 ปีที่แล้ว

    thank you! you made it very easy to follow.

  • @minzeymichael
    @minzeymichael ปีที่แล้ว

    Excellent

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

    Copying both the access token and id token from the URL is what tripped me as well.

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

    BRUH . . . Thank you for this

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

      You're welcome! Let me know if there's anything else you'd like to see!

  • @jumboliah13
    @jumboliah13 2 ปีที่แล้ว

    ya, great vid, well explained and visually practical. two thumbs up, you've helped me out a lot + an extra thumbs up for the cool digs, like, you could easily segue into a smooth jazz video.

  • @saeeduchiha5537
    @saeeduchiha5537 2 ปีที่แล้ว

    The UI is a bit outdated now given the new AWS UI. But still, I benefited from this tutorial after watching another one with the new UI.. Also, pls pay attention where you put your selfie video as it covers some of the steps (can be concluded though).

  • @saurabrakshit405
    @saurabrakshit405 2 ปีที่แล้ว

    Amazing Video !
    But, I want to know how to do the Sign Up, Login & other MFA in React-Native App, if I already have a existing backend in AWS Cognito .
    And have the below details of the existing backend :-
    aws_cognito_identity_pool_id:
    aws_cognito_region:
    aws_user_pools_id:
    aws_user_pools_web_client_id:
    I hope this question will generate curiosity in you.
    Please make a separate vdo on this topic

  • @grabteawithme2560
    @grabteawithme2560 2 ปีที่แล้ว

    Very nice content

  • @musmodtos
    @musmodtos 3 ปีที่แล้ว

    Great video mate.

  • @johnnguyen1655
    @johnnguyen1655 2 ปีที่แล้ว

    the tutorial is awesome!!!!!!!!! thanks alots.

  • @ZachMatics
    @ZachMatics ปีที่แล้ว

    Surprised this isn't emphasized more.

  • @torresetm
    @torresetm ปีที่แล้ว

    Thanks

  • @jarrodmccarthy8690
    @jarrodmccarthy8690 2 ปีที่แล้ว

    Thank you!

  • @tomashugolabs
    @tomashugolabs 3 ปีที่แล้ว

    Good job! Thanks!

  • @VincentFulco
    @VincentFulco 3 ปีที่แล้ว

    Well done!

  • @ajaygulani3086
    @ajaygulani3086 ปีที่แล้ว

    Great video, just wondering if you have some examples of client side logic - storing the token, and other best practices?

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

    Awesome! Video was short and to the point. Resolved my problem which was accidentally using the API Gateway API ID rather than the User Pool ID as the "audience". How come both the IdToken and AccessToken can be attached to the authorizer header and still have access to the protected resources?

    • @michaelakin766
      @michaelakin766 ปีที่แล้ว

      I can't get the access token to work for me.

  • @TheAmritaSingh
    @TheAmritaSingh 2 ปีที่แล้ว

    Hey can you help implement jwt support plugin with Jenkins

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

    Subscribed! Will you cover the new Amplify Studio?

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

      Absolutely! I’m currently taking a break until the new year but have a series of videos covering many of the features we released during re:Invent!

    • @wsh4and
      @wsh4and 2 ปีที่แล้ว

      @@focusotter cool, can't wait

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

    this was great, thank you! however i have a question. i have this API connected to my lambda function as a trigger, and i have a slack app which in event subscription, takes in an endpoint (in this case it is my newly authorized endpoint configured in my lambda function). however, because the API is protected, slack won't be able to verify it or access it. how can i enable slack to access this? thank you again for the vdeo!

  • @bimanbd6968
    @bimanbd6968 ปีที่แล้ว

    Thanks for the great video. What will happen when the token is expired? Is there a way to automate the token update or each time I have to manually create a token? Please let me know.

  • @michaelakin766
    @michaelakin766 ปีที่แล้ว

    It is supposed to be standard to use the access token instead of the Id token. Why did you use the id token? I am asking because I cannot get it to work with the access token in my own app.

    • @focusotter
      @focusotter  ปีที่แล้ว

      Hey! So we use the id token, but Cognito will manage and use access tokens on our behalf :)

  • @PeteGravell
    @PeteGravell 2 ปีที่แล้ว

    Thanks :) that was useful. Instead of splitting location.href I think you could also parse the hash as url search params:
    params = new URLSearchParams(window.location.hash.replace('#','?'))
    Then you can easily access the bit you want by using params.get('access_token') or whatever

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

    Someone else can copy this jwt token from request header and use it. am i correct ?

  • @abhiramsatpute
    @abhiramsatpute ปีที่แล้ว

    Hi, I wanted to know is this super different from using Lambda Authorizer or do they work in a similar manner ?

  • @tarunakar4765
    @tarunakar4765 ปีที่แล้ว

    Is there a way we can just not use the Cognito UI to signup/signin? I want to use Cognito's backend service with my own UI (via login form). It would look a little out of place in, let's say, a mobile app so yeah was just wondering!

  • @ToreyLittlefield
    @ToreyLittlefield 2 ปีที่แล้ว

    Sub 👍👍 thanks for the content

  • @sanjanag3011
    @sanjanag3011 ปีที่แล้ว

    can i use lambda to add user information into a dynamo db also? if i do that then when i am connecting to api gateway can i choose lambda instead of jwt auth?

  • @june3878
    @june3878 ปีที่แล้ว

    lambda serves as a client in this example?

  • @stacymurray9574
    @stacymurray9574 3 ปีที่แล้ว

    If you run that exact same postman test 6 months from now, would it work, or why not?

  • @SBala-xk6lr
    @SBala-xk6lr ปีที่แล้ว

    Thank you for this.
    QQ : The access token expires after a day. Is it possible to extend it for a month or so ? If not what would be good approach if we want some auth value that is applicable for a month or so.

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

      From what I have seen, you can configure that in the app client settings.

  • @MrTarang1
    @MrTarang1 2 ปีที่แล้ว

    how to do with backend api ?

  • @ksjazzguitaryt
    @ksjazzguitaryt 2 ปีที่แล้ว

    A good video on a good subject. I do wish that you'd gone a little more slowly in parts. There were parts where you just sped through a few clicks or screens without much explanation. It's especially easy to miss if you're trying to code along with the video. A little more explanation of how these parts fit together would be nice, too. But still, good video, I learned what I needed to learn.

    • @ksjazzguitaryt
      @ksjazzguitaryt 2 ปีที่แล้ว

      For example, say what button you're pushing as you push it - sometimes it's hard to track where you pointer is pointing. And it would be nice if you didn't name everything "pets" - I'm trying to do one with other names now and it isn't working - it's not always clear what refers to what since they all have the same name.

  • @munozhoracio
    @munozhoracio ปีที่แล้ว

    Excelente muy buen ejemplo, muy parecido se puede hacer andar con keycloak
    Aca dejo un ejemplo:
    th-cam.com/video/r2bN9usRmXE/w-d-xo.html&ab_channel=%C5%81ukaszBudnik

  • @SexyTerrorisT
    @SexyTerrorisT ปีที่แล้ว

    This video was not useful. I am not going to ask my user who want to interact with website behind http api gateway to use postman

  • @valentinoforever
    @valentinoforever 2 ปีที่แล้ว

    I got this error from Postman: "the token does not have a valid audience"
    I did everything you described here, on JWT.io the Signature is Verified...what can be wrong?

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

      OK I found the problem...in Cognito I have 2 different App Client, one for my app and the other for the web (generated by Amplify) so I went back to API and edit the Authorizer adding both audience. Thanks for the video!