A simple object to implement a dummy http basic authentication.
;const basic =file: '/path/to/user-password-pairs';const app = ;app;app;
If we need more control,
You can check the test for more details
This is just a bit of code that I wrote for testing and for implementing in a private architecture. Use with caution. If you really want to secure your application you should also make use of https to encrypt the headers because http authorization is sending plain passwords in the request. If you wish to contribute you can propose a PR on the related github, I'd be glad to improve this tiny api.