LoginSecurity icon indicating copy to clipboard operation
LoginSecurity copied to clipboard

Suggestion: Enforce login security by permission node?

Open steven-archer opened this issue 5 years ago • 3 comments

A great feature that I would like to see is enforcing or bypassing login security using a permission node.

Here's my use-case:

I have a Geyser server (Java + Bedrock server) and I want to make some bedrock players staff on it. I can use Login Security just fine the way it is for that, but I was hoping to make it so that only staff had to log in. I wanted regular players to just be able to join and play without having to register or log in.

I looked through the documentation and didn't see any permission nodes implemented that would do this. I'm picturing something like...

  • loginsecurity.bypass (For players who do not need to log in.)

Most permissions plugins can handle revoking of parent permissions too using -- so:

  • -loginsecurity.bypass (this would remove the bypass for roles like 'staff' which might inherit from another role like 'default')

Of course, I'm no programmer, if it makes more sense to do this the other way around with something like '- loginsecurity.enforce' then that's great too. Either way would accomplish more-or-less the same effect.

I hope you see this as a useful idea, I'm sure it would be useful to a lot of servers, especially bigger ones which don't normally need people to log in, but want that extra layer of security for their staff members.

steven-archer avatar Nov 26 '20 12:11 steven-archer

Can we please have this implemented, @lenis0012

Karbzee avatar Feb 13 '23 11:02 Karbzee

Hi. Thanks for letting me know this issue is still desired. I will see about adding it in the next version.

lenis0012 avatar Feb 14 '23 09:02 lenis0012

This will be implemented in v3.2

Please try the dev build on https://ci.codemc.io/job/lenis0012/job/LoginSecurity/

The permission node is "ls.bypass"

lenis0012 avatar Mar 11 '23 02:03 lenis0012