Skip to content

ahsouza/node-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Readme Stats

Authenticating users with Passport

Authentication using passport with Node.js to Google+ APIs, Facebook, Twitter.

GitHub issues GitHub pull requests GitHub Release Date GitHub repo size

Français · 简体中文 · Español · Deutsch · 日本語 · Português Brasileiro · Italiano · 한국어

Authenticating users with Passport

Passport is authentication middleware for Node. It is designed to serve a singular purpose: authenticate requests. When writing modules, encapsulation is a virtue, so Passport delegates all other functionality to the application. This separation of concerns keeps code clean and maintainable, and makes Passport extremely easy to integrate into an application.

In modern web applications, authentication can take a variety of forms.

Authentication to Google+ APIs, Facebook, Twitter and more.

Clone the project repository by running the command below if you use SSH

git clone git@github.com:ahsouza/node-auth.git

If you use https, use this instead

git clone https://github.com/ahsouza/node-auth.git

Configures the ID_CLIENT and KEY_SECRET of the user account in config/auth

'clientID' : 'your-secret-clientID-here', // seu App ID

'clientSecret' : 'your-client-secret-here', // seu App Secret

Determines the location of the database in the config / database.js file

'url' : 'your_database_here' // mongodb://<user>:<pass>@mongo.onmodulus.net:27017/yourdatabase

Run the command below to install NPM dependencies

npm install

And

npm start

to start the app and visit http://127.0.0.1:8080/ to see the app in action.