Secure API Gateway with Cognito User Pool [AWS 2022]

Поделиться
HTML-код
  • Опубликовано: 25 июн 2022
  • In this video you learn how to secure your API Gateway with an existing Cognito User Pool.
    Thanks for watching!
    Instagram: / devspot.blog
    Twitter: / devspot_blog
  • НаукаНаука

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

  • @sainthokaha5630
    @sainthokaha5630 8 месяцев назад

    Can you please make a video of how you hosted this particular portfolio website online

    • @devspot3864
      @devspot3864  8 месяцев назад

      Checkout my video on AWS codepipeline CICD. That video shows how you can host a site on s3. I am working on a video currently on how to use Amplify as well.

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

    Thanks for those videos, could you make an video on how to actually deploy the webpage somwhere, not on localhost?

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

      I am making a video on this right now actually. I'll show you how to make a CICD Piepline and host the site in an s3 bucket. Hopefully this weekend I'll get the video up.

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

      @@devspot3864 Thank You! Looking forward to that! I have followed all the previous tutorials, and now I only lack that JWT token to make everything work

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

      Check my reply to your other question. I linked you some documentation that shows you what to do. You need to use Auth.currentAuthenticatedUser

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

      @@devspot3864 I solved it thanks! I tried to put my code here in comments for others, but I think youtube removes all my comments with code

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

    Hii, good video!, can I get the token data in the lambda?

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

      Thank you! And yes you can. You can either configure the lambda to handle the token data directly or you could send token data in the header or body of the request. I guess it depends on the security you are looking for. I could put together a video on how to go about doing that 🤙🤙

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

    Where can I get the JWT token to put in header from?

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

      You should use the currentAuthenticatedUser method to get all info on the user. So import 'Auth' from 'aws-amplfiy' and then call Auth.currentAuthenticatedUser

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

      docs.amplify.aws/lib/auth/manageusers/q/platform/js/#account-recovery-verification