Skip to content

Implementing security levels for user login to the SECRETS app using Passport.js and OAuth integration

Notifications You must be signed in to change notification settings

PouriaCh/Secrets-with-Website-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secrets

Secrets is a Node.js app that allows the users to submit their secrets anonymously! It means your identity would never be revealed to the public and only your secrets will be listed along with everybody else's. Give it a try and let me know!

Getting Started

  1. Clone the repository by:
git clone https://github.com/PouriaCh/Secrets-with-Website-Authentication.git
  1. Make sure you have installed Node.js in your local machine.

  2. Go to the main folder of the repository and run the following command:

npm install

This will make sure that you install all the required modules listed in package.json.

  1. This app integrates Open Authentication (OAuth) for Google, Facebook, and GitHub users. The middleware that we use for authentication is Passport.js which offers simple authentication for Node.js apps.

You need to include Google, Facebook and GitHub strategies for OAuth purposes. Check out the following links:

Follow the instructions step-by-step according to these links.

  1. Create a file named .env inside the main folder of the project. You need to copy your CLIENT_ID and CLIENT_SECRET for each strategy mentioned above. Something like:
SECRET=thisisourlittlesecret.
SESSION_SECRET=Our little secret.
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
FACEBOOK_APP_ID=...
FACEBOOK_APP_SECRET=...
GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...

Instead of ..., insert your own data from the Developer Console of Google, Facebook, and GitHub (without any , or "" or space). Make sure your .env is listed inside the .gitignore file in case you want to push your work to GitHub.

About

Implementing security levels for user login to the SECRETS app using Passport.js and OAuth integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published