Skip to content

It is a simple authentication portal, which allows you to create your profile, update it, and reset your password.

Notifications You must be signed in to change notification settings

apanjain/Authentication-Portal-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication Portal Sample

Setup

  • Clone this repository

  • Install MongoDb

  • Create Role

db.createRole({ createRole: <Role Name>, privileges: [ {
  resource: { db: <Database Name>, collection: "" },
  actions: [ "find","insert","update","createIndex","createCollection","remove" ]}
], roles: [{ role: "read", db: <Database Name>}] })
  • Create User
- db.createUser({"user" : <User name>,pwd: <Password>, "roles" : [{"role" : <Role Name Created>, "db" : <Database Name>}]})
  • Install npm packages
- npm install
  • Make a .env file with the same fields as .env.sample
- cp .env.sample .env
  • Fill the .env file accordingly

For OAuth Credentials

  • Use your oauth secrets by registering here

Using the app

  • Run the app
- npm start

About

It is a simple authentication portal, which allows you to create your profile, update it, and reset your password.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published