0.0.1 • Published 5 years ago

basic-auth-proxy-server v0.0.1

Weekly downloads
173
License
MIT
Repository
github
Last release
5 years ago

basic-auth-proxy-server

A simple http proxy server with basic auth

Usage

npm install -g basic-auth-proxy-server
basic-auth-proxy-server 3000 http://localhost:8000 your-name:your-password

How does it work ?

+--------+ --- access without authorization ---> +-------------------------+        +---------+
| client |                                       | basic-auth-proxy-server |        | backend |
+--------+ <--------- access denied ------------ +-------------------------+        +---------+

+--------+ ----- access with authorization ----> +-------------------------+ -----> +---------+
| client |                                       | basic-auth-proxy-server |        | backend |
+--------+ <------ response from backend ------- +-------------------------+ <----- +---------+

License

MIT