franciskinyuru / Node-BasicAuth-headers-validation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node-Express BasicAuth and Headers validation

Required packages

  • express
  • express-basic-auth
  • dotenv
  • nodemon

Installation

Install dependencies by running

npm install

Creat a .env file and add below variables and provide your details

MY_SECRET_USERNAME

MY_SECRET_PASSWORD

SOURCE_SYSTEM

ROUTER_ID

Running the Application

Run below command the test you application on postman

npm start

Results

Request BasicAuth section and response Screenshot 2023-02-13 at 16 55 53

Request headers and response Screenshot 2023-02-13 at 16 55 58

About


Languages

Language:JavaScript 89.7%Language:Dockerfile 10.3%