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
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!
Glad that u found it helpful 😄
@@FelixYu Hey quick question - What resources would you use to make this domain externally accessible for friends to try out / login and create accounts
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!
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.
You have no idea how great of a video this is ! Thank you !
I really like your tutorials. Everything is explained in a simple way and you don't focus on a less signifiant details. Thank you!
Glad that u found it helpful!!
Very nice tutorial. I appreciate the fact that you broke down the explanation to a lay-man level. Thanks @Felix for this video!
Thank you 😊 glad that u found it helpful 👍
All your clips are high value and very useful! Felix you are awesome. Please carry on with these videos. 🙂
Glad that u found them helpful :)
Been looking for this many times, couldn't find any video like this
You kept it short simple and cool. Respect sir.
Tyty
Worked Perfectly. Thankyou for such a simple workflow.
Thanks Fleix for taking me from 0 to 1. Liked and subscribed.
Love your channel Felix, please do more, anything AWS I will code with you!! Love Cognito.
thanks for the support mate!! it means a lot!!
Thank you so much Felix! very simple explanation! i love it!
Great stuff! Extra greatness for the no-nonsense approach :)
Amazing tutorial. Could you please make a playlist for the single videos like these. As most of us just binge watch playlists
Simple and to the point. Thank you. Thumbs-up, of course.
Thank you so much! Please make more videos!
Awesome! Thanks for the video. Could you also make one about how authorization works in Cognito or more advanced stuffs? Thanks
Great one!!! Loved it ✨ 💜
thank you!! :)
Great work!
@Felix Yu What resources would you use to make this domain externally accessible for friends to try out / login and create accounts
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
Excellent Tutorial. Thanks for sharing!
Glad it was helpful!
Good work!
All time great tutorial
Glad u liked it
Great Content! keep going 💓
thank you!! :)
Thanks thanks , Simple and crisp
Keep it coming boss
thank you :)
A perfect exaplanation ....😍🥰
Thank you for video
amazing tutorial
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
Very nice ty I need to learn more
Glad that you found it helpful
Dang, well-done👍
Tyty
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
ruclips.net/video/wGg-c63DLak/видео.html
I have another video that uses Amplify, which uses cognito in the background. check it out!!
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.
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.
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
the video you were looking for is out. check it out:
ruclips.net/video/wGg-c63DLak/видео.html
Thank you!
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?
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.
How can we enable the redirects to go back to the original URL and with the same query parameters?
how do i make this website available from my domain name rather than just locally?
great content, one question, some knows how to get the code from the url to exchange it with a token?
Really succinct and helpful. Great video Felix!
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
How to customize the html for the verification or sign in sign up pages
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.
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
How to prevent the page of a monolith app using cognito. thanks
Amazing tutorial. Could you please make one AWS project for a MERN application which uses Route53, API Gateway, AWS Lambda and some storage ?
thank you!! i will put that on my list!!
With cognito!
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
Check out the other video I have that talks abt amplify. I had it implemented in that video
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
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..
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.
where can I get the code?
There are so many videos with username password based login, but I’m stuck at client secret based login. Can you help here?
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 ?
Hi Felix, Thanks for this tut...But .i am agree with siddharth's query, so can you please clarify this ...
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).
Merci
Glad that u found it helpful!!
А ты хорош))
guys what html extension is this?
Can you make one about logging out
Sir but now cognito is completely different I am not getting how to approach on that
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
But you didn’t secure the index page.. the way you did i can access it even though i’m not logged in🤷🏻♂️
AWS changed all of the screens. Time for an update?
That's nice, but it doesn't logged it out Idk why
this guy fucks! great tutorial!
Jehovah 123 Jesus
@Amazon please hire Felix to do your tutorials. Amazon do better with your tutorials. This is the standard.
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.