Role-based authorization model.
Posted: Mon Oct 16, 2017 1:29 pm
I'm preparing authorization model of the game after authentication was implemented and accepted.
I could distinguish several roles:
Is it complete model? Maybe there should be more detailed roles or they supposed to have different distribution on players?
I could distinguish several roles:
- ROLE_HOST - Can save and load games. Edit other player settings. Stop server.
- ROLE_MODERATOR - Can attend game as a Moderator.
- ROLE_PLAYER - Can attend game as a Player.
- ROLE_OBSERVER - Can attend game as a Observer.
- ROLE_GALAXY_SETUP - Can change galaxy and AI settings in lobby.
- Host:
- ROLE_HOST
- ROLE_MODERATOR
- ROLE_PLAYER
- ROLE_OBSERVER
- ROLE_GALAXY_SETUP
- Other players
- ROLE_MODERATOR
- ROLE_PLAYER
- ROLE_OBSERVER
- ROLE_MODERATOR
- ROLE_PLAYER
- ROLE_OBSERVER
- ROLE_GALAXY_SETUP
Is it complete model? Maybe there should be more detailed roles or they supposed to have different distribution on players?