Mysql Authentication, Nodejs and Docker
Mysql Authentication, Nodejs and Docker
Table of Contents
- Quick Links
- What You Need
- Key Features
- Project Layout
- Prerequisites
- Installation and Setup
- Using the App
- API Routes - Protected
- Credentials
Quick Links
- MySQL
- Docker
- OpenAPI 3.0
- Node.js
- IDE
- Docker
- MySQL
Key Features
Project Layout
Prerequisites
npm init -y
cd Auth-Tutorial-Lab02
npm install
npm start
Credentials
The project uses basic authentication to protect the /protected route. When making
an HTTP request to this route, you need to include these credentials in the
Authorization header of the request. The format is Authorization: Basic
{credentials}, where {credentials} is the Base64 encoding of the username and
password joined by a colon.
Username: basicUser
Password: basicPassword