Open KonnyGuo opened 7 months ago
@KonnyGuo did you have a link to a blog?
@unnamedrd sorry about that, I forgot to attach my link. Here is the link to the blog: https://docs.google.com/document/d/14by2NcBWglWQ5qrbY-qMMb5iERDLEN6M1vbnK2IP6sE/edit?usp=sharing
No problem Konny! Thanks for adding that.
@KonnyGuo You're a talented writer! I do have some comments, and have requested write access to the doc.
@unnamedrd you should have access now. Let me know if it works for you.
@unnamedrd I made edits based on the comments you provided. Feel free to take a look over it and see if everything is all good. https://docs.google.com/document/d/14by2NcBWglWQ5qrbY-qMMb5iERDLEN6M1vbnK2IP6sE/edit?usp=sharing
Timeline:
📋 Adding Authentication to Amplify with Passport.js
Requirements
Questions to consider:
Who’s reading this? Where are they in your dev journey? What do they need to know before they can dive into this story? This post is mainly for developers with Node.js and Express experience who are looking to add authentication to an application. Some understanding with sessions, encryption and authentication concepts would help.
If people could leave with just one action, what would it be? Implementing authentication is a crucial task for any application. Using Passport.js gives a balance of security, simplicity and scalability. The local strategy delivers secure password login flow, and allows the flexibility to extend authentication features for the future.
Were there surprises or alternative problem solving you want to give a heads up to? There are many other Passport.js strategies that we could have implemented. But we chose the local strategy for its flexibility, simplicity and scalability for the future. An auth middleware file was also implemented to help redirect admins to the correct pages when they are logged in. If admins are not logged in, the middleware is used to redirect them to the login page to sign in so that certain pages can be accessed.
Outline Structure:
Why is security important for any application and what do we consider when implementing it?Example Outlines
To Do: when you complete the requirements, add "outline ready" label on your issue
📰 Blog Rough draft: Format into a google doc
Questions to answer across draft
To do: when you complete the requirements, add "draft ready" label on your issue