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

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

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

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

    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 10 หลายเดือนก่อน

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

  • @ZhiyuanZhang-y4q
    @ZhiyuanZhang-y4q ปีที่แล้ว +3

    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!

  • @JestinStoffel
    @JestinStoffel ปีที่แล้ว +38

    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.

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

      Can you explain me how to do that?

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

      Is that the reson i can access my login page without logged in?

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

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

  • @bejoyp
    @bejoyp 8 หลายเดือนก่อน +1

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

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

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

    You kept it short simple and cool. Respect sir.

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

      Tyty

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

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

    Very clear and concise tutorial. Thank you.

  • @Muzica-app
    @Muzica-app 7 หลายเดือนก่อน

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

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

    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  2 ปีที่แล้ว

      Glad that u found it helpful!!

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

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

    Very Nice Felix Thanks for posting this video

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

  • @ふぃお-d3c
    @ふぃお-d3c ปีที่แล้ว

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

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

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

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

  • @Daniel-k6j7n
    @Daniel-k6j7n ปีที่แล้ว +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.

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

    A perfect exaplanation ....😍🥰

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

    Really succinct and helpful. Great video Felix!

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

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

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

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

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

    Thanks thanks , Simple and crisp

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

    In new AWS version, i am unable to find identity providers its giving me only fedreted identity provider with google, FB, amazon.
    can u tell me how can I do it normally that u have done in this video. ?

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

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

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

    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

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

    Excellent Tutorial. Thanks for sharing!

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

      Glad it was 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

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

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

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

    All time great tutorial

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

      Glad u liked it

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

    Thank you so much! Please make more videos!

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

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

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

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

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

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

    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 ปีที่แล้ว

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

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

      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).

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

    Great one!!! Loved it ✨ 💜

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

      thank you!! :)

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

    I had a problem with terminal code , I installed python extension but still there is a error😢, please help

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

    excellent video

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

    Great work!

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

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

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

    Thank you ❤

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

    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.

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

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

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

    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.

  • @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 ปีที่แล้ว

      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

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

    Very nice ty I need to learn more

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

      Glad that you found it helpful

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

    Good work!

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

    Keep it coming boss

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

      thank you :)

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

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

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

    amazing tutorial

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

    Great Content! keep going 💓

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

      thank you!! :)

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

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

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

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

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

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

    Dang, well-done👍

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

      Tyty

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

    Thank you for video

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

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

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

    where can I get the code?

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

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

    Can you make one about logging out

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

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

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

    guys what html extension is this?

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

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

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

    А ты хорош))

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

    Merci

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

      Glad that u found it helpful!!

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

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

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

    Jehovah 123 Jesus

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