Skip to main content

Node Authentication

Authentication mean that identify users and provision of access of rights and contents depending on their ID.Node authentication is the technique used to ensure that the managing server and data collectors communicate with each other in a secure manner.Authentication can be categorized as follows
1.Session based
2.Token based
3.Password less
What is session based authentication?
User credentials such as user name or email and password are compared with the database where this data was stored.If they match, a session is initialized for the user with the fetched ID.

Comments

Popular posts from this blog

  Node.js What is Node.js? Node.js used as back-end (server-side) language in the development. As usual client/user deal with the front end of the applications.There are much process behind that , we call it as back-end.There, we used several languages like Node.js, php and java as server side languages and MongoDB or MySQL as data base. Node.js is an open-source ,cross-platform javascript runtime environment and library for running web applications outside the client's browser.It is a server-side platform built on Google Chrome's javascript engine(V8 Engine).Node.js was developed by Ryan Dahi in 2009 and its latest version is v14.13.0. Node.js applications are written in javascript and can be run within the Node.js runtime on OS X,Microsoft Windows and Linux.                      Node.js = Runtime Environment + JavaScript Library. Reference ( Simplilearn youtube channel, Node.js documentation)

Discussion about the basic LINUX commands

Basic linux commands Linux is an operating system mostly used by programmers to carry out their task efficiently. In Windows we used cmd for CLI,as same for CLI here we used terminal.Here also we used mostly same as cmd key words. cd           - change directory ls             - list mkdir      - make directory rmdir     - remove directory mv          - move man        - manual touch       -   file formation rm           - remove file clear       - clear the on screen lnr          - print cat          - file contents df            - display the used and available space of harddisk su            - switch to another user top      ...

Node.js MongoDB

Now a days all web based application has some database to store the data at the back end. Nodejs frame work have the ability to work with both relational and non relational database. Node.js  MongoDB   NoSQL database mongodb quite fame because of its ability to store the any sort of data at any format.In order work we have to download required module.Mongodb required the module to be installed is mongoose.And also with these modules we can perform many operations.Before that we have to get start mongodb in nodejs. 1.Install MongoDB Driver * We can download from official mongodb driver or open in terminal and execute it     npm install mongodb * Node.js used this module to manipulate mongodb database.   var  mongo = require( 'mongodb' ); 2.Node.js  MongoDB  Create Database To create a database: 1.Create the Mongoclient object 2.Specify the url connection (correct ip address and name of the database want...