wireguard-ui icon indicating copy to clipboard operation
wireguard-ui copied to clipboard

User management & Access control

Open ngoduykhanh opened this issue 5 years ago • 8 comments

It would be nice if we can have multiple users access. Each user has their own Wireguard client setup.

Only Admin can manage the Wireguard server config

ngoduykhanh avatar Apr 27 '20 04:04 ngoduykhanh

I am currently integrating the UI into YunoHost (selfhosting orchestration based on Debian). Since YunoHost's SSO has its own login page, is it possible to disable your logging system altogether?

It seems that only putting {} in db/server/users.json allows for any input to be accepted, but maybe we can bypass the login page completely?

tituspijean avatar Oct 06 '20 11:10 tituspijean

@tituspijean I've added an option to disable authentication, you can try with --disable-login command-line argument.

ngoduykhanh avatar Oct 10 '20 11:10 ngoduykhanh

Yes, I saw your new release. It works great, thanks!

I mimicked what you did to allow for other binding addresses too. See the related PR. ;)

tituspijean avatar Oct 10 '20 11:10 tituspijean

Yes, I saw it and added a few comments there. Can you check?

ngoduykhanh avatar Oct 10 '20 11:10 ngoduykhanh

There is an issue though, after disabling authentication, with the now irrelevant user name on the homepage: "%!s()"

Capture d’écran 2020-10-10 153113

tituspijean avatar Oct 10 '20 13:10 tituspijean

oops, I've just fixed it on the master branch.

ngoduykhanh avatar Oct 10 '20 14:10 ngoduykhanh

@ngoduykhanh Hi, I don't want to open new issue. Can You tell me how to change login and password. I run with binary file ./wireguard-ui? Regards.

PrzemekSkw avatar Jul 28 '21 14:07 PrzemekSkw

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 21 '21 20:11 stale[bot]

Also maybe if we get multiple users you can connect it to OCID and have each user connected to your SSO service.

anoosa1 avatar Nov 28 '22 04:11 anoosa1

@tituspijean I've added an option to disable authentication, you can try with --disable-login command-line argument.

may i ask you if it is possible to disable the login on the docker container? keep the env empty?

bitdruid avatar Jan 07 '23 12:01 bitdruid