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

  Рет қаралды 92,388

Felix Yu

Felix Yu

Күн бұрын

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
@user-kb7lt2jw7s
@user-kb7lt2jw7s Жыл бұрын
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 жыл бұрын
There are so many videos about Cognito on KZbin but not one as simplified as this. Such a clear and smooth way to get started. Thanks a bunch Felix!
@FelixYu
@FelixYu 2 жыл бұрын
Glad that u found it helpful 😄
@StockG
@StockG 5 ай бұрын
@@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 ай бұрын
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!
@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!!
@mediatwinkleTV
@mediatwinkleTV Жыл бұрын
You have no idea how great of a video this is ! Thank you !
@cheers2life87
@cheers2life87 4 ай бұрын
Thanks Fleix for taking me from 0 to 1. Liked and subscribed.
@EmmanuelArthur-vp5bz
@EmmanuelArthur-vp5bz 10 ай бұрын
Been looking for this many times, couldn't find any video like this
@clivebird5729
@clivebird5729 2 жыл бұрын
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 :)
@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 👍
@onecloudhelper
@onecloudhelper 11 ай бұрын
Worked Perfectly. Thankyou for such a simple workflow.
@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 9 ай бұрын
Thank you so much Felix! very simple explanation! i love it!
@jussikorhonen3142
@jussikorhonen3142 3 ай бұрын
Great stuff! Extra greatness for the no-nonsense approach :)
@georgesmith9178
@georgesmith9178 8 ай бұрын
Simple and to the point. Thank you. Thumbs-up, of course.
@teetanrobotics5363
@teetanrobotics5363 Жыл бұрын
Amazing tutorial. Could you please make a playlist for the single videos like these. As most of us just binge watch playlists
@minhaj6211
@minhaj6211 Жыл бұрын
You kept it short simple and cool. Respect sir.
@FelixYu
@FelixYu Жыл бұрын
Tyty
@lovetoka
@lovetoka Ай бұрын
Thanks thanks , Simple and crisp
@zaboomafia
@zaboomafia Жыл бұрын
Thank you so much! Please make more videos!
@leamon9024
@leamon9024 Жыл бұрын
Awesome! Thanks for the video. Could you also make one about how authorization works in Cognito or more advanced stuffs? Thanks
@edydon
@edydon 10 ай бұрын
Great work!
@davidjhons2549
@davidjhons2549 2 ай бұрын
A perfect exaplanation ....😍🥰
@joycehermine8665
@joycehermine8665 Жыл бұрын
Excellent Tutorial. Thanks for sharing!
@FelixYu
@FelixYu Жыл бұрын
Glad it was helpful!
@saurabrakshit405
@saurabrakshit405 2 жыл бұрын
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
@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
@vasunurukurthi5624
@vasunurukurthi5624 2 жыл бұрын
Great one!!! Loved it ✨ 💜
@FelixYu
@FelixYu 2 жыл бұрын
thank you!! :)
@user-sg4zr7yr8q
@user-sg4zr7yr8q 7 ай бұрын
Good work!
@StockG
@StockG 5 ай бұрын
@Felix Yu What resources would you use to make this domain externally accessible for friends to try out / login and create accounts
@csoutsource
@csoutsource Жыл бұрын
How can we enable the redirects to go back to the original URL and with the same query parameters?
@yogendrapawar1738
@yogendrapawar1738 4 ай бұрын
amazing tutorial
@deew5810
@deew5810 2 ай бұрын
Really succinct and helpful. Great video Felix!
@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.
@abeerahussain7407
@abeerahussain7407 2 жыл бұрын
how do i make this website available from my domain name rather than just locally?
@sampadakajarekar2783
@sampadakajarekar2783 25 күн бұрын
How to customize the html for the verification or sign in sign up pages
@aids2132
@aids2132 Жыл бұрын
All time great tutorial
@FelixYu
@FelixYu Жыл бұрын
Glad u liked it
@user-vx3jz8nb5l
@user-vx3jz8nb5l 11 ай бұрын
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.
@moramoy1
@moramoy1 Жыл бұрын
Thank you for video
@adrianfelix2177
@adrianfelix2177 4 ай бұрын
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.
@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
@kenjohnsiosan9707
@kenjohnsiosan9707 Жыл бұрын
How to prevent the page of a monolith app using cognito. thanks
@abdulqudusyunus9786
@abdulqudusyunus9786 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
@fatihcamgoz
@fatihcamgoz 2 жыл бұрын
Keep it coming boss
@FelixYu
@FelixYu 2 жыл бұрын
thank you :)
@chungbryan3
@chungbryan3 11 ай бұрын
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?
@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?
@henryvangard537
@henryvangard537 Жыл бұрын
Very nice ty I need to learn more
@FelixYu
@FelixYu Жыл бұрын
Glad that you found it helpful
@jonato96s
@jonato96s Жыл бұрын
great content, one question, some knows how to get the code from the url to exchange it with a token?
@bmcseal01
@bmcseal01 Жыл бұрын
Dang, well-done👍
@FelixYu
@FelixYu Жыл бұрын
Tyty
@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..
@deathrekt678
@deathrekt678 2 ай бұрын
guys what html extension is this?
@reshos123
@reshos123 Жыл бұрын
where can I get the code?
@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 жыл бұрын
kzbin.info/www/bejne/rXjKXpZsaKl_l80 I have another video that uses Amplify, which uses cognito in the background. check it out!!
@MMeffert
@MMeffert 2 жыл бұрын
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 жыл бұрын
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 жыл бұрын
the video you were looking for is out. check it out: kzbin.info/www/bejne/rXjKXpZsaKl_l80
@MMeffert
@MMeffert 2 жыл бұрын
Thank you!
@scottdunnTUBEYOU
@scottdunnTUBEYOU 21 күн бұрын
AWS changed all of the screens. Time for an update?
@foxtrotbr
@foxtrotbr 28 күн бұрын
But you didn’t secure the index page.. the way you did i can access it even though i’m not logged in🤷🏻‍♂️
@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
@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
@nadirjackson5755
@nadirjackson5755 Жыл бұрын
Can you make one about logging out
@teetanrobotics5363
@teetanrobotics5363 2 жыл бұрын
Amazing tutorial. Could you please make one AWS project for a MERN application which uses Route53, API Gateway, AWS Lambda and some storage ?
@FelixYu
@FelixYu 2 жыл бұрын
thank you!! i will put that on my list!!
@Confusedcapybara8772
@Confusedcapybara8772 2 жыл бұрын
With cognito!
@denistsur3060
@denistsur3060 Жыл бұрын
А ты хорош))
@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 ай бұрын
kzbin.info/www/bejne/rXjKXpZsaKl_l80 please check out this video on how to integrate it with a UI framework (i used react as an example).
@beatrizcayresrodrigues5903
@beatrizcayresrodrigues5903 2 ай бұрын
That's nice, but it doesn't logged it out Idk why
@p.v.s.veeranjaneyulu4032
@p.v.s.veeranjaneyulu4032 10 ай бұрын
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 kzbin.info/www/bejne/iYvUi2aajbRqgNE
@navjotsingh2457
@navjotsingh2457 Жыл бұрын
Merci
@FelixYu
@FelixYu Жыл бұрын
Glad that u found it helpful!!
@edpro4776
@edpro4776 5 ай бұрын
@Amazon please hire Felix to do your tutorials. Amazon do better with your tutorials. This is the standard.
@MitchJenkins-uv7lj
@MitchJenkins-uv7lj 3 ай бұрын
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.
Amazon Cognito Tutorial for Beginners | AWS Cognito
34:21
Coderjony
Рет қаралды 14 М.
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 12 МЛН
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3,1 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 23 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
Create an AWS Cognito User Pool
14:47
Brian Morrison
Рет қаралды 6 М.
Use JWT Authorizers with Amazon Cognito and API Gateway
13:48
Focus Otter
Рет қаралды 51 М.
57. Cognito User Pools vs. Identity Pools
15:32
AWS Bites
Рет қаралды 10 М.
oAuth for Beginners - How oauth authentication🔒 works ?
10:43
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 12 МЛН