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

Поделиться
HTML-код
  • Опубликовано: 4 авг 2024
  • Support the channel plz 😊: www.buymeacoffee.com/felixyu
    Use Amplify to build a register / login system: • How to use AWS Amplify...
    Videos on how to build a complete register / login system from scratch:
    part 1: • Build an Authenticatio...
    part 2: • Build an Authenticatio...
    ============ Chapters ============
    0:00 - Intro
    1:15 - Coding
    3:43 - AWS Cognito Configuration
    7:45 - Integrate AWS Cognito into Code

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

  • @zaahedaislam9866
    @zaahedaislam9866 2 года назад +41

    There are so many videos about Cognito on RUclips 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 6 месяцев назад

      @@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 8 месяцев назад +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!

  • @user-kb7lt2jw7s
    @user-kb7lt2jw7s Год назад +30

    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.

  • @mediatwinkleTV
    @mediatwinkleTV Год назад +2

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

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

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

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

  • @EmmanuelArthur-vp5bz
    @EmmanuelArthur-vp5bz 11 месяцев назад

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

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

    You kept it short simple and cool. Respect sir.

  • @onecloudhelper
    @onecloudhelper 11 месяцев назад +1

    Worked Perfectly. Thankyou for such a simple workflow.

  • @cheers2life87
    @cheers2life87 4 месяца назад

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

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

  • @user-ri2jr3jn7t
    @user-ri2jr3jn7t 10 месяцев назад

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

  • @jussikorhonen3142
    @jussikorhonen3142 3 месяца назад

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

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

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

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

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

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

    Thank you so much! Please make more videos!

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

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

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

    Great one!!! Loved it ✨ 💜

    • @FelixYu
      @FelixYu  2 года назад +1

      thank you!! :)

  • @edydon
    @edydon 11 месяцев назад

    Great work!

  • @StockG
    @StockG 6 месяцев назад

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

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

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

    Excellent Tutorial. Thanks for sharing!

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

      Glad it was helpful!

  • @user-sg4zr7yr8q
    @user-sg4zr7yr8q 8 месяцев назад

    Good work!

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

    All time great tutorial

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

    Great Content! keep going 💓

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

      thank you!! :)

  • @lovetoka
    @lovetoka 2 месяца назад

    Thanks thanks , Simple and crisp

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

    Keep it coming boss

    • @FelixYu
      @FelixYu  2 года назад +1

      thank you :)

  • @davidjhons2549
    @davidjhons2549 2 месяца назад

    A perfect exaplanation ....😍🥰

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

    Thank you for video

  • @yogendrapawar1738
    @yogendrapawar1738 5 месяцев назад

    amazing tutorial

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

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

    Very nice ty I need to learn more

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

      Glad that you found it helpful

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

    Dang, well-done👍

  • @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 года назад

      ruclips.net/video/wGg-c63DLak/видео.html
      I have another video that uses Amplify, which uses cognito in the background. check it out!!

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

  • @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:
      ruclips.net/video/wGg-c63DLak/видео.html

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

      Thank you!

  • @chungbryan3
    @chungbryan3 11 месяцев назад +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?

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

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

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

  • @abeerahussain7407
    @abeerahussain7407 2 года назад +1

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

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

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

  • @deew5810
    @deew5810 3 месяца назад

    Really succinct and helpful. Great video Felix!

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

  • @sampadakajarekar2783
    @sampadakajarekar2783 Месяц назад

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

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

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

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

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

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

  • @withtheengineer-hamza-3255
    @withtheengineer-hamza-3255 2 месяца назад

    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

  • @polyglotdev
    @polyglotdev 5 месяцев назад

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

  • @adrianfelix2177
    @adrianfelix2177 5 месяцев назад

    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.

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

  • @SiddharthSharmass42279
    @SiddharthSharmass42279 10 месяцев назад

    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 10 месяцев назад

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

    • @FelixYu
      @FelixYu  10 месяцев назад

      ruclips.net/video/wGg-c63DLak/видео.html
      please check out this video on how to integrate it with a UI framework (i used react as an example).

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

    Merci

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

      Glad that u found it helpful!!

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

    А ты хорош))

  • @deathrekt678
    @deathrekt678 3 месяца назад

    guys what html extension is this?

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

    Can you make one about logging out

  • @p.v.s.veeranjaneyulu4032
    @p.v.s.veeranjaneyulu4032 11 месяцев назад +1

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

    • @mikepetersen1077
      @mikepetersen1077 10 месяцев назад

      And it is very different. I found an AWS services vid that leads through a no frills creation with the new console ruclips.net/video/SZqZ3dXO7Jo/видео.html

  • @foxtrotbr
    @foxtrotbr Месяц назад

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

  • @scottdunnTUBEYOU
    @scottdunnTUBEYOU Месяц назад

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

  • @beatrizcayresrodrigues5903
    @beatrizcayresrodrigues5903 2 месяца назад

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

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

    this guy fucks! great tutorial!

  • @MitchJenkins-uv7lj
    @MitchJenkins-uv7lj 3 месяца назад +1

    Jehovah 123 Jesus

  • @edpro4776
    @edpro4776 6 месяцев назад

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

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