arunbandari / mongo-gui

A web-based MongoDB graphical user interface
http://20.106.238.56:4321/
MIT License
290 stars 87 forks source link

Added simple authorization for secure login. #112

Closed szbk closed 1 year ago

szbk commented 1 year ago

When running the application on the remote server, I added simple authorization to prevent others from logging in.

arunbandari commented 1 year ago

@szbk Thanks for the PR. This looks good, but can we make this optional? I mean, if USERNAME and PASSWORD are not defined in the env, then we should directly be able to access the site.

szbk commented 1 year ago

You are right. Some may not want to use it. Especially locally I will edit and send again, is it ok?

arunbandari commented 1 year ago

You are right. Some may not want to use it. Especially locally I will edit and send again, is it ok?

Yes @szbk, it would be great if you modify the code accordingly.

szbk commented 1 year ago

I have optionally revised the user name and password prompt. ⚡️

arunbandari commented 1 year ago

@szbk will you be able to add some details about this feature to the readme, like how to setup and how to disable it?

szbk commented 1 year ago

I added the authentication directive in README.md 🔥