How to use AWS Cognito to build an Authentication / Login System

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

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

  • @user-kb7lt2jw7s
    @user-kb7lt2jw7s ปีที่แล้ว +31

    I'd like to point out that at no point whatsoever in this tutorial was the user ever actually logged in. To be fully logged in, a token needs to be retrieved via the /token endpoint from the application. That never happened. The user was given an authorization code that expires in 3 minutes (by default) that is good for one thing: exchanging for an actual access token. This tutorial never covered that. No access token means no log in actually occurred. Sorry, but that's the reality. This was _almost_ a video about logging in with Cognito.

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

    There are so many videos about Cognito on TH-cam but not one as simplified as this. Such a clear and smooth way to get started. Thanks a bunch Felix!

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

      Glad that u found it helpful 😄

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

      @@FelixYu Hey quick question - What resources would you use to make this domain externally accessible for friends to try out / login and create accounts

  • @user-mx6zu2kj8h
    @user-mx6zu2kj8h 10 หลายเดือนก่อน +2

    I do love your videos, straight to the point and not dragging your feet. This is the kind of tutorial we need, bringing the realest, simplest side of AWS service to everyone, instead of watching a video and getting more confused!

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

    Amazing Video !
    But, I want to know how to do the Sign Up, Login & other MFA 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

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

    You have no idea how great of a video this is ! Thank you !

  • @tpointsystems
    @tpointsystems วันที่ผ่านมา

    Very Nice Felix Thanks for posting this video

  • @withtheengineer-hamza-3255
    @withtheengineer-hamza-3255 3 หลายเดือนก่อน

    very nice explanation,.Would like to see how to keep using the same credentials from the Front End Code when calling APIs deployed to API Gateway Stage and secured with the same Cognito user pool. Thanks

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

    You kept it short simple and cool. Respect sir.

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

    Worked Perfectly. Thankyou for such a simple workflow.

  • @EmmanuelArthur-vp5bz
    @EmmanuelArthur-vp5bz ปีที่แล้ว

    Been looking for this many times, couldn't find any video like this

  • @user-vx3jz8nb5l
    @user-vx3jz8nb5l ปีที่แล้ว +1

    Hello, could you cover more on accessing personal items of a user through Cognito? For example, I have a table that has a attribute that is the same as the immutable attribute of the Cognito user. The link allows user to access items in the table once logged in only.

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

    I really like your tutorials. Everything is explained in a simple way and you don't focus on a less signifiant details. Thank you!

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

      Glad that u found it helpful!!

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

    Thanks Fleix for taking me from 0 to 1. Liked and subscribed.

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

    All your clips are high value and very useful! Felix you are awesome. Please carry on with these videos. 🙂

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

      Glad that u found them helpful :)

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

    Awesome! Thanks for the video. Could you also make one about how authorization works in Cognito or more advanced stuffs? Thanks

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

    Great content! Can you expand on the use of Cognito and show how you would maintain the users logged in session as they move around to other pages? For example, you show the Logged_In.html that a user is redirected to after they login but they could just navigate to that page without any authentication. Also, how would you know if the user is logged in as they navigate to additional pages? I have watched your additional login system videos but I specifically want more content on Cognito specifically. Thank you so much for your content.

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

      Yep u are absolutely right..this video is just an intro of cognito!! I have a follow up video on my list to build out a system with restrictions to a certain page with aws cognito in the near future. Be on the lookout for it

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

      the video you were looking for is out. check it out:
      th-cam.com/video/wGg-c63DLak/w-d-xo.html

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

      Thank you!

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

    Great video!
    One thing I think is missing. How do we make web pages available only to logged in users or a select group of logged in users?

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

    Love your channel Felix, please do more, anything AWS I will code with you!! Love Cognito.

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

      thanks for the support mate!! it means a lot!!

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

    Bro really mastered the art of simplifying stuff. Next do a video on simplifying women's brain and thinking. I think you have what it takes..

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

    Nice tutorial. Thanks. Pls can you explain how the browser detects that the app is authenticated. Does it store some data in the local storage or what? Thanks

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

    Great stuff! Extra greatness for the no-nonsense approach :)

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

    Very nice tutorial. I appreciate the fact that you broke down the explanation to a lay-man level. Thanks @Felix for this video!

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

      Thank you 😊 glad that u found it helpful 👍

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

    Amazing tutorial. Could you please make a playlist for the single videos like these. As most of us just binge watch playlists

  • @user-ri2jr3jn7t
    @user-ri2jr3jn7t 11 หลายเดือนก่อน

    Thank you so much Felix! very simple explanation! i love it!

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

    Simple and to the point. Thank you. Thumbs-up, of course.

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

    Amazing tutorial. Could you please make one AWS project for a MERN application which uses Route53, API Gateway, AWS Lambda and some storage ?

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

    how do i make this website available from my domain name rather than just locally?

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

    A perfect exaplanation ....😍🥰

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

    Thanks thanks , Simple and crisp

  • @p.v.s.veeranjaneyulu4032
    @p.v.s.veeranjaneyulu4032 ปีที่แล้ว +1

    Sir but now cognito is completely different I am not getting how to approach on that

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

      And it is very different. I found an AWS services vid that leads through a no frills creation with the new console th-cam.com/video/SZqZ3dXO7Jo/w-d-xo.html

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

    How to customize the html for the verification or sign in sign up pages

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

    Hello! Your video helped me a lot, everything was working fine except for the end. When you register a new user, you go back to the AWS page and refresh the users page, and the registered user appears but with no confirmed email. So, my issue is this: when I enter the activation code and click confirm, a black screen appears and says: "This site cannot provide a secure connection localhost sent an invalid response." What could it be? Did I accidentally delete a character in the HTML code in logged_in.html? Thank you.

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

    Thank you so much! Please make more videos!

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

    But you didn’t secure the index page.. the way you did i can access it even though i’m not logged in🤷🏻‍♂️

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

    Excellent Tutorial. Thanks for sharing!

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

      Glad it was helpful!

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

    All time great tutorial

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

      Glad u liked it

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

    How can we enable the redirects to go back to the original URL and with the same query parameters?

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

    Really succinct and helpful. Great video Felix!

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

    @Felix Yu What resources would you use to make this domain externally accessible for friends to try out / login and create accounts

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

    Great work!

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

    amazing tutorial

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

    Is there a way we can programmatically access the credentials and other information that are processed by Cognito when users signup? I'd like for another microservice in my application to be know certain things about the user that logged in, like maybe some sort of unique cognito ID, that I can then use to access a user in my own custom microservice.

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

    Your clips have been a tremendous help! Thank you so much. I have a question with this particular one though, what comes next?
    it seems like this is just a generic redirect to a logged_in.html that anyone could also type in, regardless of being logged in, and it wouldn't have access to the cognito data. How do you pass in the token? i.e. how do you show content exclusive to the login session that can't be accessed unless you're logged in?
    I know you covered this in the other video with a from scratch approach but it doesn't seem to apply to the built in cognito UI approach

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

      th-cam.com/video/wGg-c63DLak/w-d-xo.html
      I have another video that uses Amplify, which uses cognito in the background. check it out!!

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

    Great one!!! Loved it ✨ 💜

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

      thank you!! :)

  • @user-sg4zr7yr8q
    @user-sg4zr7yr8q 9 หลายเดือนก่อน

    Good work!

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

    How to prevent the page of a monolith app using cognito. thanks

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

    AWS changed all of the screens. Time for an update?

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

    great content, one question, some knows how to get the code from the url to exchange it with a token?

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

    Very nice ty I need to learn more

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

      Glad that you found it helpful

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

    Thank you for video

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

    Keep it coming boss

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

      thank you :)

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

    Great Content! keep going 💓

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

      thank you!! :)

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

    Hi Felix,
    Thankyou for this tutorial.
    I have one further question:
    How can I manage login/logout for specific user? Seems like in video you just used the generic client app URL and just redirected to the page.
    Note: I have a angular APP and I want to integrate cognito authentication with my APP? Hope you getting my point ?

    • @VishalKumar-ez2vj
      @VishalKumar-ez2vj 11 หลายเดือนก่อน

      Hi Felix, Thanks for this tut...But .i am agree with siddharth's query, so can you please clarify this ...

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

      th-cam.com/video/wGg-c63DLak/w-d-xo.html
      please check out this video on how to integrate it with a UI framework (i used react as an example).

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

    Hi please help. I need to create an e-commerce website. how can i user cognito and also dynamo db to store the user info and authenticate it. i also will need the user info to manage the shopping cart

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

    Dang, well-done👍

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

      Tyty

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

    Can you make one about logging out

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

    That's nice, but it doesn't logged it out Idk why

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

    There are so many videos with username password based login, but I’m stuck at client secret based login. Can you help here?

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

    guys what html extension is this?

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

    Hi Felix, can we restrict the users to access the application, I mean if the user details are available in the application then only it should allow to access the application through Congito

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

      Check out the other video I have that talks abt amplify. I had it implemented in that video

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

    Hi Felix, can we use Firebase to call AWS lambda? Is it a better approach ? we have a business need to go with push notifications as well.

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

      Hmm I have never use firebase before but u will prob need to connect api gateway to ur lambda in order to call it externally

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

    where can I get the code?

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

    А ты хорош))

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

    Merci

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

      Glad that u found it helpful!!

  • @MitchJenkins-uv7lj
    @MitchJenkins-uv7lj 4 หลายเดือนก่อน +1

    Jehovah 123 Jesus

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

    @Amazon please hire Felix to do your tutorials. Amazon do better with your tutorials. This is the standard.

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

    this guy fucks! great tutorial!

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

    Hello Felix, i am on Verify email page. i am receiving Verification code in my email but when i enter that code its giving me error message"ExpiredCodeException:Invalid code provided, please request a code again".I reset password but no luck.