Authentication using HTTP basic
Basic authentication is a simple authentication scheme built into the HTTP protocol, which uses base64-encoded username and password pairs as credentials.
Prerequisites
Install htpasswd in your environment to create a password file for storing username-password pairs.
-
For Ubuntu/Debian, run the following command to install
htpasswd.apt install apache2-utils -
For CentOS/RHEL, run the following command to install
htpasswd.yum install httpd-tools