Multiple user accounts & finer grained access control

Issue #3 open
Will Warren repo owner created an issue

Create some sort of list to control users and what API methods they have access to. This would allow for multiple people to be able to log into SwiftApi at once.

You could also create "groups". A read-only group for example who can monitor the server but not interact with it.

Here's an example of how the config could look:

groups:
     Owner:
     - *
     Moderator:
     - addToWhitelist
     - announce
     - ban
     - banIp
     - getBannedIps
     - getBannedPlayers
     - getBukkitVersion
     - getConsoleMessages
     - getOfflinePlayer
     - getOfflinePlayers
     - getOps
     - getPlayer
     - getPlayers
     - getPlugin
     - getPlugins
     - getServer
     - getServerVersion
     - getWhitelist
     - getWorld
     - getWorlds
     - kick
     - ping
     - removeFromWhitelist
     - setGameMode
     - unBan
     - unBanIp
     ReadOnly:
     - getBannedIps
     - getBannedPlayers
     - getBukkitVersion
     - getConsoleMessages
     - getOfflinePlayer
     - getOfflinePlayers
     - getOps
     - getPlayer
     - getPlayers
     - getPlugin
     - getPlugins
     - getServer
     - getServerVersion
     - getWorld
     - getWorlds
     Console:
     - getConsoleMessages
     - runConsoleCommand
defaultGroup: ReadOnly    
users:
     notch:
     - Moderator
     phybros:
     - Owner
     anotherplayer:
     - ReadOnly
     - Console

Comments (1)

  1. Log in to comment