Authentication Methods

Three major methods(mechanism) of adding security to an API —

1.HTTP Basic Auth,
2.API Keys, and 
3.OAuth 

HTTP Basic Auth,
use Cookies,
Session,
JWT
passport

3 Common Methods of API Authentication Explained
Authentication vs Authorization : The two functions are often tied together in single solutions.

Authentication is when an entity proves an identity. In other words, Authentication proves that you are who you say you are. This is akin to having an identification card – an item given by a trusted authority that the requester, such as a police officer, can use as evidence that suggests you are in fact who you say you are.

Authorization is when an entity proves a right to access. In other words, Authorization proves you have the right to make a request. When you try to go backstage at a concert or an event, you don’t necessarily have to prove that you are who you say you are – you furnish the ticket, which is de facto proof that you have the right to be where you’re trying to get into.

How To Control User Identity Within Microservices

Why and when to use API keys
Basics of Javascript Objects
Defining and Using React Redux mapStateToProps Function
Converting a React App to TypeScript

Common Methods of API Authentication

1.HTTP Basic Authentication

Basic HTTP authentication with Node and Express 4s

How to use http.client in Node.js if there is basic authorization

NodeJs & Authentication with Http Basic Access cookies and sessions

Uploading Images on MongoDB via nodeJS

How to Code a Video Streaming Server using NodeJS

How to Code a Video Streaming Server using MongoDB

Authentication in Node.js API with JSON Web Tokens

Using Node.js to read HTML file and send HTML response

Basic Authentication in Node.js

Node.js Generate html

Render HTML file in NodeJS/ExpressJS

How does a web session work ?

Create Cookie, Session hijacking – Hacking Articles

Stripe🔥 Webhook & Session ID Retrieve to Handle Payment Success Response 3D SCA Card & Ideal Method

Redis

How Session Data is stored in NodeJS in server-side?

Session Management in Nodejs Using Redis as Session Store

How to build a simple session-based authentication system with NodeJS from scratch

Session Authentication in Express Code Realm

Managing Node.js – Express Sessions with Redis Basic

Chapter 11. Authenticating users, managing sessions, and securing APIs

Using a Database (with Mongoose – ODM/ORM )

How to collect, customize, and centralize Node.js logs

List of Node.js Articles

Getting Data From MongoDB & Creating an API Key ValidationMiddleware in Express
Git medium-05_mongo_client

List-of-node-js-articles

This page is dedicated to be a reference to all the articles i have written and am planning to write on the node series. This will help the reader to go through the articles in sequential order.

1.Node.Js — Some Concepts before you start coding
2.Getting started with Node.js, Installation and basic scripts
3.Using babel and other dependencies in node.js
4.Creating Rest APIs using Express
5.Getting data from mongodb & creating an api Key Validation Middleware in Express
6.Authentication and authorisation using Redis
7.Authentication and authorisation using JWT
8.Implementing RabbitMQ with node.js
9.Using Kafka with Node.js (Work in Progress)
10.Introduction to elasticsearch using Node.js — Part 1
11.Introduction to elasticsearch using Node.js — Part 2
12.Nuances of running Node.js in production (Work in Progress)
13.Building an OTP verification service using Node.js (Work in Progress)

Node.js client api key

There are many ways to create api keys. Here are some of them

UUID - https://www.npmjs.com/package/uuid
Json web token - https://github.com/auth0/node-jsonwebtoken
Oauth - https://github.com/ciaranj/node-oauth

Build an E-Commerce Website with MERN Stack Series’ 5 Articles With Redux

2. API Keys Authentication

Why and when to use API keys

3. OAuth Authentication

Mongo Role and Node Email Authentication

Role Based API Authentication | Node Express MongoDB
Full User Authentication System with Node Express and CRUD – Playlist

Leave a Reply

Your email address will not be published. Required fields are marked *